summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2022-08-25 20:36:37 +0200
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-09-24 09:04:32 +0200
commitb9eb3ab6f30bf32f7326909f17949ccb11bab514 (patch)
treef76f3c69df3ffbad49e63726011a3676815bdd3d /include/media
parent8fcccd2f37b27503694c6cd82a6c5ab911e69d73 (diff)
downloadlinux-b9eb3ab6f30bf32f7326909f17949ccb11bab514.tar.bz2
media: ipu3-imgu: Fix NULL pointer dereference in active selection access
What the IMGU driver did was that it first acquired the pointers to active and try V4L2 subdev state, and only then figured out which one to use. The problem with that approach and a later patch (see Fixes: tag) is that as sd_state argument to v4l2_subdev_get_try_crop() et al is NULL, there is now an attempt to dereference that. Fix this. Also rewrap lines a little. Fixes: 0d346d2a6f54 ("media: v4l2-subdev: add subdev-wide state struct") Cc: stable@vger.kernel.org # for v5.14 and later Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Bingbu Cao <bingbu.cao@intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'include/media')
0 files changed, 0 insertions, 0 deletions