aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2018-01-24 10:01:31 +0000
committerMauro Carvalho Chehab <[email protected]>2018-01-30 12:28:35 +0000
commit333b1e9f96ce05f7498b581509bb30cde03018bf (patch)
treeae136791b2796e427870be4e82da76b81e992b2b /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentmedia: v4l2-compat-ioctl32.c: move 'helper' functions to __get/put_v4l2_format32 (diff)
downloadkernel-333b1e9f96ce05f7498b581509bb30cde03018bf.tar.gz
kernel-333b1e9f96ce05f7498b581509bb30cde03018bf.zip
media: v4l2-compat-ioctl32.c: avoid sizeof(type)
Instead of doing sizeof(struct foo) use sizeof(*up). There even were cases where 4 * sizeof(__u32) was used instead of sizeof(kp->reserved), which is very dangerous when the size of the reserved array changes. Signed-off-by: Hans Verkuil <[email protected]> Acked-by: Sakari Ailus <[email protected]> Cc: <[email protected]> # for v4.15 and up Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions