summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChandra Mohan Sundar <chandramohan.explore@gmail.com>2025-08-18 12:31:57 +0300
committerHans Verkuil <hverkuil+cisco@kernel.org>2025-08-25 16:40:44 +0300
commit80eaf32672871bd2623ce6ba13ffc1f018756580 (patch)
treef527f99c18e72d77b4c871d10d309245535d893d /include
parent9d108d226224b91ad11e7cfcf846c2a1721b466d (diff)
downloadlinux-80eaf32672871bd2623ce6ba13ffc1f018756580.tar.xz
media: stm32-csi: Fix dereference before NULL check
In 'stm32_csi_start', 'csidev->s_subdev' is dereferenced directly while assigning a value to the 'src_pad'. However the same value is being checked against NULL at a later point of time indicating that there are chances that the value can be NULL. Move the dereference after the NULL check. Fixes: e7bad98c205d1 ("media: v4l: Convert the users of v4l2_get_link_freq to call it on a pad") Cc: stable@vger.kernel.org Signed-off-by: Chandra Mohan Sundar <chandramohan.explore@gmail.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions