aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core/v4l2-async.c
diff options
context:
space:
mode:
authorTomi Valkeinen <[email protected]>2021-01-18 08:14:46 +0000
committerMauro Carvalho Chehab <[email protected]>2021-02-06 07:38:06 +0000
commite88ccf09e79cf33cac40316ba69c820d9eebc82b (patch)
tree1cb9fba21c401a1e237f8cfb31cf8716ad3f181c /drivers/media/v4l2-core/v4l2-async.c
parentmedia: staging/intel-ipu3: Do not zero reserved fields (diff)
downloadkernel-e88ccf09e79cf33cac40316ba69c820d9eebc82b.tar.gz
kernel-e88ccf09e79cf33cac40316ba69c820d9eebc82b.zip
media: i2c: max9286: fix access to unallocated memory
The asd allocated with v4l2_async_notifier_add_fwnode_subdev() must be of size max9286_asd, otherwise access to max9286_asd->source will go to unallocated memory. Fixes: 86d37bf31af6 ("media: i2c: max9286: Allocate v4l2_async_subdev dynamically") Signed-off-by: Tomi Valkeinen <[email protected]> Cc: [email protected] # v5.10+ Reviewed-by: Laurent Pinchart <[email protected]> Reviewed-by: Kieran Bingham <[email protected]> Tested-by: Kieran Bingham <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-async.c')
0 files changed, 0 insertions, 0 deletions