aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDamien Lespiau <[email protected]>2014-08-08 19:15:20 +0100
committerDaniel Vetter <[email protected]>2014-08-14 21:24:30 +0200
commit14f476fa24e81d0beea1aa14d763102958518d60 (patch)
treecd55c05d9c0cbeaf2e253a17041408b14747106f /tools/perf/scripts/python
parentc11cda52193dfa459dfea38f00b19bc9325fa922 (diff)
drm: Use the type of the array element when reallocating
Static analysers find it 'suspicious', that we're trying to allocate memory for elements of size sizeof(struct drm_fb_helper_connector) when the array is defined as struct drm_fb_helper_connector **. Use sizeof(struct drm_fb_helper_connector *) instead. Note that the structure being defined as: struct drm_fb_helper_connector { struct drm_connector *connector; }; This was still doing the right thing, but may not in the future if additional fields are added. Cc: Todd Previte <[email protected]> Cc: Dave Airlie <[email protected]> Signed-off-by: Damien Lespiau <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions