mbox series

[v2,0/4] Fix mediatek-drm coverity issues

Message ID 20230613113210.24949-1-jason-jh.lin@mediatek.com (mailing list archive)
Headers show
Series Fix mediatek-drm coverity issues | expand

Message

Jason-JH Lin (林睿祥) June 13, 2023, 11:32 a.m. UTC
Add this patch series to fix some mediatek-drm coverity issues.

Change in v2:
1. remove kfree(pkt) in mtk_drm_crtc_create_pkt().
2. change the statement of cnt reach to MAX_CRTC.
3. drop the mtk_gem_obj initialized patch.
4. change casting from unsined long to __u64.
5. add 'int offset' for multiplier calculation.
6. drop the unrelavaent modification in dereference null check patch.

Jason-JH.Lin (4):
  drm/mediatek: Remove freeing not dynamic allocated memory
  drm/mediatek: Add cnt checking for coverity issue
  drm/mediatek: Add casting before assign
  drm/mediatek: Fix dereference before null check

 drivers/gpu/drm/mediatek/mtk_drm_crtc.c  |  7 ++----
 drivers/gpu/drm/mediatek/mtk_drm_drv.c   |  5 ++++-
 drivers/gpu/drm/mediatek/mtk_drm_gem.c   |  2 +-
 drivers/gpu/drm/mediatek/mtk_drm_plane.c | 28 ++++++++++++------------
 4 files changed, 21 insertions(+), 21 deletions(-)