linux/drivers/media/platform
Jia-Ju Bai df8ab4c601 media: bdisp: Fix a possible sleep-in-atomic bug in bdisp_hw_save_request
The driver may sleep under a spinlock.
The function call path is:
bdisp_device_run (acquire the spinlock)
  bdisp_hw_update
    bdisp_hw_save_request
      devm_kzalloc(GFP_KERNEL) --> may sleep

To fix it, GFP_KERNEL is replaced with GFP_ATOMIC.

This bug is found by my static analysis tool(DSAC) and checked by my code review.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Reviewed-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-12-18 15:02:48 -05:00
..
am437x media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
atmel media: atmel-isc: avoid returning a random value at isc_parse_dt() 2017-12-11 13:04:50 -05:00
blackfin media: drivers: delete error messages for failed memory allocation 2017-09-23 08:19:55 -04:00
cec-gpio [media] cec-gpio: don't generate spurious HPD events 2017-10-04 17:04:18 -03:00
coda media: coda: use correct offset for mpeg4 decoder mvcol buffer 2017-12-18 15:00:16 -05:00
davinci media: davinci: vpif_capture: add NULL check on devm_kzalloc return value 2017-12-08 11:15:41 -05:00
exynos4-is media: exynos4-is: Use PTR_ERR_OR_ZERO() 2017-12-08 11:29:04 -05:00
exynos-gsc media: exynos-gsc: Add hardware rotation limits 2017-10-16 16:49:09 -07:00
marvell-ccic License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
meson media: platform: Add Amlogic Meson AO CEC Controller driver 2017-08-09 10:45:26 -04:00
mtk-jpeg media: vcodec: mediatek: constify v4l2_m2m_ops structures 2017-08-20 08:03:55 -04:00
mtk-mdp License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mtk-vcodec media: mtk-vcodec: add missing MODULE_LICENSE/DESCRIPTION 2017-12-08 11:14:23 -05:00
mtk-vpu media: mtk-vpu: add description for wdt fields at struct mtk_vpu 2017-11-30 04:19:00 -05:00
omap media: omap_vout: Fix a possible null pointer dereference in omap_vout_open() 2017-10-31 06:37:22 -04:00
omap3isp media updates for v4.15-rc1 2017-11-15 20:30:12 -08:00
qcom media: venus: cleanup set_property controls 2017-12-08 11:28:37 -05:00
rcar-vin media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
rockchip/rga media: rockchip/rga: annotate PM functions as __maybe_unused 2017-10-31 07:21:56 -04:00
s3c-camif media: s3c-camif: add missing description at s3c_camif_find_format() 2017-11-30 04:19:00 -05:00
s5p-cec media: s5p-cec: add NACK detection support 2017-09-23 07:29:30 -04:00
s5p-g2d media: platform: make video_device const 2017-08-27 08:44:30 -04:00
s5p-jpeg media: s5p-jpeg: directly use parsed subsampling on exynos5433 2017-08-20 08:02:21 -04:00
s5p-mfc treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
soc_camera media: v4l: sh_mobile_ceu: Return buffers on streamoff() 2017-12-18 14:57:25 -05:00
sti media: bdisp: Fix a possible sleep-in-atomic bug in bdisp_hw_save_request 2017-12-18 15:02:48 -05:00
stm32 media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
tegra-cec media: tegra-cec: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE 2017-12-08 11:15:17 -05:00
ti-vpe media: drivers: media: remove duplicate includes 2017-12-13 09:58:39 -05:00
vimc media: v4l2-tpg*.h: move headers to include/media/tpg and merge them 2017-12-18 12:28:35 -05:00
vivid media: v4l2-tpg*.h: move headers to include/media/tpg and merge them 2017-12-18 12:28:35 -05:00
vsp1 media: vsp1: Prevent suspending and resuming DRM pipelines 2017-12-08 10:40:10 -05:00
xilinx media: xilinx-video: fix bad of_node_put() on endpoint error 2017-12-14 09:54:25 -05:00
arv.c
fsl-viu.c treewide: setup_timer() -> timer_setup() (2 field) 2017-11-21 15:57:09 -08:00
Kconfig media: tegra-cec: add Tegra HDMI CEC driver 2017-10-27 15:48:57 +02:00
m2m-deinterlace.c media: platform: make video_device const 2017-08-27 08:44:30 -04:00
Makefile media updates for v4.15-rc1 2017-11-15 20:30:12 -08:00
mx2_emmaprp.c media: platform: make video_device const 2017-08-27 08:44:30 -04:00
pxa_camera.c media: pxa_camera: disable and unprepare the clock source on error 2017-12-18 14:57:45 -05:00
rcar_drif.c media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
rcar_fdp1.c media: drivers: remove "/**" from non-kernel-doc comments 2017-11-30 04:19:03 -05:00
rcar_jpu.c media: rcar_jpu: fix two kernel-doc markups 2017-11-30 04:19:03 -05:00
rcar-fcp.c
sh_veu.c media: drivers: remove "/**" from non-kernel-doc comments 2017-11-30 04:19:03 -05:00
sh_vou.c
via-camera.c media: platform: make video_device const 2017-08-27 08:44:30 -04:00
via-camera.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
video-mux.c
vim2m.c media: drivers: remove "/**" from non-kernel-doc comments 2017-11-30 04:19:03 -05:00