diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2023-12-08 14:06:37 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-12-13 13:21:19 +0100 |
commit | 1545c2b92bdf408e860dea2cf958b65e17a0ce18 (patch) | |
tree | 5a1e0957549df2e03addd899890f74c6ac33553d /include/media | |
parent | 09b4195021be69af1e1936cca995712a6d0f2562 (diff) |
media: atmel-isi: Fix crash due to missing subdev in state
As a result of converting to the stream-aware state functions, commit
bc0e8d91feec ("media: v4l: subdev: Switch to stream-aware state
functions") caused the sd pointer of the state passed to the
v4l2_subdev_state_get_crop() function to be dereferenced. It however
missed that the atmel-isi driver creates the v4l2_subdev_state instance
on the stack (which it shouldn't do, but that's a separate problem),
without initializing the sd field. This results in a null pointer
dereference.
Fix it by initializing the sd field.
Fixes: bc0e8d91feec ("media: v4l: subdev: Switch to stream-aware state functions")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'include/media')
0 files changed, 0 insertions, 0 deletions