[PATCH] drm: fix null-ptr-deref in drm_minor_alloc_release

2021-10-18 Thread Wang Hai
kdev Define a temp variable and assign it to minor->kdev if the temp variable is not PTR_ERR. Fixes: f96306f9892b ("drm: manage drm_minor cleanup with drmm_") Reported-by: Hulk Robot Signed-off-by: Wang Hai --- drivers/gpu/drm/drm_drv.c | 9 ++--- 1 file changed, 6 insertions(+), 3

[PATCH] video: smscufx: Fix null-ptr-deref in ufx_usb_probe()

2021-10-14 Thread Wang Hai
("Add support for SMSC UFX6000/7000 USB display adapters") Reported-by: Hulk Robot Signed-off-by: Wang Hai --- drivers/video/fbdev/smscufx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/smscufx.c b/drivers/video/fbdev/smscufx.c index bf

[PATCH] drm: fix null-ptr-deref in drm_dev_init_release()

2021-10-13 Thread Wang Hai
Hulk Robot Signed-off-by: Wang Hai --- drivers/gpu/drm/drm_drv.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 7a5097467ba5..b3a1636d1b98 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_

[PATCH -next] drm/amd/powerplay: remove duplicate include

2020-08-20 Thread Wang Hai
Remove asic_reg/nbio/nbio_6_1_offset.h which is included more than once Reported-by: Hulk Robot Signed-off-by: Wang Hai --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_inc.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_inc.h b/drivers/gpu/drm

[PATCH -next] drm/nouveau/nvenc: remove duplicate include

2020-08-19 Thread Wang Hai
Remove priv.h which is included more than once Reported-by: Hulk Robot Signed-off-by: Wang Hai --- drivers/gpu/drm/nouveau/nvkm/engine/nvenc/base.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/nvenc/base.c b/drivers/gpu/drm/nouveau/nvkm/engine/nvenc

[PATCH -next] drm/nouveau/svm: remove duplicate include

2020-08-19 Thread Wang Hai
Remove nvif/if000c.h which is included more than once Reported-by: Hulk Robot Signed-off-by: Wang Hai --- drivers/gpu/drm/nouveau/nouveau_dmem.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_dmem.c b/drivers/gpu/drm/nouveau/nouveau_dmem.c index

[PATCH -next] drm/mediatek: remove duplicate include

2020-08-19 Thread Wang Hai
Remove mtk_drm_ddp.h which is included more than once Reported-by: Hulk Robot Signed-off-by: Wang Hai --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index

[PATCH] drm/amd/display: Make some functions static

2019-05-09 Thread Wang Hai
d-by: Hulk Robot Signed-off-by: Wang Hai --- drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c b/drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c index 31