summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorChiYuan Huang <cy_huang@richtek.com>2024-05-08 05:51:49 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2024-06-04 09:31:22 +0300
commit9b4667ea67854f0b116fe22ad11ef5628c5b5b5f (patch)
tree6185765002226caf676dd517a0f7de2fd171f806 /include/uapi/linux
parent984abe0b5794a2aca359bb61555351d2ec520d2a (diff)
downloadlinux-9b4667ea67854f0b116fe22ad11ef5628c5b5b5f.tar.xz
media: v4l: async: Fix NULL pointer dereference in adding ancillary links
In v4l2_async_create_ancillary_links(), ancillary links are created for lens and flash sub-devices. These are sub-device to sub-device links and if the async notifier is related to a V4L2 device, the source sub-device of the ancillary link is NULL, leading to a NULL pointer dereference. Check the notifier's sd field is non-NULL in v4l2_async_create_ancillary_links(). Fixes: aa4faf6eb271 ("media: v4l2-async: Create links during v4l2_async_match_notify()") Signed-off-by: ChiYuan Huang <cy_huang@richtek.com> [Sakari Ailus: Reword the subject and commit messages slightly.] Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions