diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-08-08 22:15:20 +0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-08-14 23:24:30 +0400 |
commit | 14f476fa24e81d0beea1aa14d763102958518d60 (patch) | |
tree | cd55c05d9c0cbeaf2e253a17041408b14747106f /include | |
parent | c11cda52193dfa459dfea38f00b19bc9325fa922 (diff) | |
download | linux-14f476fa24e81d0beea1aa14d763102958518d60.tar.xz |
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 <tprevite@gmail.com>
Cc: Dave Airlie <airlied@redhat.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions