linux/drivers/staging/media
Ricardo Ribalda dccfe25487 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: ad91849996 ("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>
2021-04-09 13:07:09 +02:00
..
atomisp media: atomisp: fix a typo 2021-04-06 10:26:54 +02:00
hantro media: hantro: fix kernel-doc warnings and style 2021-04-06 10:32:59 +02:00
imx media: imx: imx7_mipi_csis: Ensure pads are connected 2021-04-06 11:47:25 +02:00
ipu3 media: staging/intel-ipu3: Fix race condition during set_fmt 2021-04-09 13:07:09 +02:00
meson/vdec media: staging: media: meson: vdec: fix kernel-doc warning 2021-03-22 12:56:11 +01:00
omap4iss media: omap4iss: Acquire graph mutex for graph traversal 2021-04-06 14:34:38 +02:00
rkvdec media: rkvdec: Do not require all controls to be present in every request 2021-04-06 19:33:02 +02:00
sunxi media: uapi: move VP8 stateless controls out of staging 2021-03-22 09:52:12 +01:00
tegra-vde Staging / IIO driver updates for 5.10-rc1 2020-10-15 09:46:23 -07:00
tegra-video media: tegra-video/csi.h: fix kernel-doc mistake 2021-03-22 12:52:05 +01:00
zoran media: zoran: convert comma to semicolon 2021-01-14 13:59:22 +01:00
Kconfig media: allegro: move driver out of staging 2021-01-04 13:19:40 +01:00
Makefile media: allegro: move driver out of staging 2021-01-04 13:19:40 +01:00