Files
linux/drivers
Chandra Mohan Sundar 1f053d82e5 media: stm32-csi: Fix dereference before NULL check
commit 80eaf32672 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: e7bad98c20 ("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>
2025-10-06 11:18:48 +02:00
..
2025-08-28 16:34:18 +02:00
2025-09-11 17:23:22 +02:00
2025-09-25 11:16:45 +02:00
2025-09-25 11:16:41 +02:00
2025-08-28 16:34:36 +02:00
2025-08-20 18:40:56 +02:00