linux_dsm_epyc7002/drivers/media/platform/mtk-vpu
Colin Ian King 211eba9e79 [media] VPU: mediatek: fix null pointer dereference on pdev
pdev is being null checked, however, prior to that it is being
dereferenced by platform_get_drvdata.  Move the assignments of
vpu and run to after the pdev null check to avoid a potential
null pointer dereference.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Tiffany Lin <tiffany.lin@mediatek.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-10-21 12:09:34 -02:00
..
Makefile [media] VPU: mediatek: support Mediatek VPU 2016-07-08 14:04:48 -03:00
mtk_vpu.c [media] VPU: mediatek: fix null pointer dereference on pdev 2016-10-21 12:09:34 -02:00
mtk_vpu.h [media] VPU: mediatek: Add decode support 2016-10-21 10:38:23 -02:00