summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorRicardo Ribalda <ribalda@chromium.org>2021-04-09 11:41:35 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-04-09 14:07:09 +0300
commitdccfe2548746ca9cca3a20401ece4cf255d1f171 (patch)
tree00f82c4a1d4bca72170859ba51fd104238ec140f /scripts/generate_rust_analyzer.py
parent3630901933afba1d16c462b04d569b7576339223 (diff)
downloadlinux-dccfe2548746ca9cca3a20401ece4cf255d1f171.tar.xz
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: stable@vger.kernel.org Fixes: ad91849996f9 ("media: staging/intel-ipu3: Fix set_fmt error handling") Reviewed-by: Tomasz Figa <tfiga@chromium.org> Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions