diff options
| author | Chandra Mohan Sundar <chandramohan.explore@gmail.com> | 2025-08-18 12:31:57 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2025-08-25 16:40:44 +0300 |
| commit | 80eaf32672871bd2623ce6ba13ffc1f018756580 (patch) | |
| tree | f527f99c18e72d77b4c871d10d309245535d893d /include/linux/dynamic_debug.h | |
| parent | 9d108d226224b91ad11e7cfcf846c2a1721b466d (diff) | |
| download | linux-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/linux/dynamic_debug.h')
0 files changed, 0 insertions, 0 deletions
