diff options
author | Vaishali Thakkar <[email protected]> | 2016-04-28 22:16:57 +0530 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-04-28 15:37:52 -0300 |
commit | ca7ce82a280a65c377c24c95c29b1dec6e80b428 (patch) | |
tree | 7ae35a11de58738aa07ae82f778b2373738db126 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | a30e6259b5e31e8d2b40f3b0099d98a6ebe0e360 (diff) |
perf tests: Do not use sizeof on pointer type
Using sizeof on a malloced pointer type will return the wordsize which
can often cause one to allocate a buffer much smaller than it is needed.
So, here do not use sizeof on pointer type.
Note that this has no effect on runtime because 'dsos' is a pointer to a
pointer.
Problem found using Coccinelle.
Signed-off-by: Vaishali Thakkar <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions