summaryrefslogtreecommitdiff
path: root/Documentation/DocBook/procfs_example.c
diff options
context:
space:
mode:
authorChandra Mohan Sundar <chandramohan.explore@gmail.com>2025-08-18 15:01:57 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-06 11:18:48 +0200
commit1f053d82e59c785b2b939cbed12f13657f84b296 (patch)
tree6a378febc160dcd22c978589ad82cf2f7c5cb6c6 /Documentation/DocBook/procfs_example.c
parentc9e024e907cafafd6b094f69a0d0f5d18fd28876 (diff)
media: stm32-csi: Fix dereference before NULL check
commit 80eaf32672871bd2623ce6ba13ffc1f018756580 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/DocBook/procfs_example.c')
0 files changed, 0 insertions, 0 deletions