[PATCH -next] drm/msm: Remove unused variables 'top'

2022-09-30 Thread Chen Zhongjin
eed to get dpu_hw_mdp in dpu_kms_mdp_snapshot() now. Since there is no code using 'top' in this function. Remove it. Signed-off-by: Chen Zhongjin --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu

[PATCH -next] drm/qxl: Remove unused variable 'count'

2022-09-30 Thread Chen Zhongjin
The variable 'count' is introduced in this commit 'commit f64122c1f6ad("drm: add new QXL driver. (v1.4)")' However, since introduced it was just iterated and never been used. Remove it for code cleaning. Signed-off-by: Chen Zhongjin --- drivers/gpu/drm/qxl/qxl_cm

[PATCH] fbcon: Fix memleak when fbcon_set_font() fails

2022-12-05 Thread Chen Zhongjin
... It's because when fbcon_do_set_font() fails in fbcon_set_font(), it return error directly and doesn't free allocated memory 'new_data'. Reported-by: syzbot+25bdb7b1703639abd...@syzkaller.appspotmail.com Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: sta...@vger.