diff options
author | Ricardo Ribalda <[email protected]> | 2021-04-09 10:41:35 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2021-04-09 13:07:09 +0200 |
commit | dccfe2548746ca9cca3a20401ece4cf255d1f171 (patch) | |
tree | 00f82c4a1d4bca72170859ba51fd104238ec140f /tools/perf/scripts/python/sctop.py | |
parent | 3630901933afba1d16c462b04d569b7576339223 (diff) |
media: staging/intel-ipu3: Fix race condition during set_fmt
Do not modify imgu_pipe->nodes[inode].vdev_fmt.fmt.pix_mp, until the
format has been correctly validated.
Otherwise, even if we use a backup variable, there is a period of time
where imgu_pipe->nodes[inode].vdev_fmt.fmt.pix_mp might have an invalid
value that can be used by other functions.
Cc: [email protected]
Fixes: ad91849996f9 ("media: staging/intel-ipu3: Fix set_fmt error handling")
Reviewed-by: Tomasz Figa <[email protected]>
Signed-off-by: Ricardo Ribalda <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions