diff options
| author | Sakari Ailus <[email protected]> | 2022-08-25 20:36:37 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2022-09-24 09:04:32 +0200 |
| commit | b9eb3ab6f30bf32f7326909f17949ccb11bab514 (patch) | |
| tree | f76f3c69df3ffbad49e63726011a3676815bdd3d /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 8fcccd2f37b27503694c6cd82a6c5ab911e69d73 (diff) | |
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: [email protected] # for v5.14 and later
Signed-off-by: Sakari Ailus <[email protected]>
Reviewed-by: Bingbu Cao <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions