dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Fix mediatek-drm coverity issues
@ 2023-06-21 10:22 Jason-JH.Lin
  2023-06-21 10:22 ` [PATCH v3 1/4] drm/mediatek: Remove freeing not dynamic allocated memory Jason-JH.Lin
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Jason-JH.Lin @ 2023-06-21 10:22 UTC (permalink / raw)
  To: Chun-Kuang Hu, AngeloGioacchino Del Regno, Alexandre Mergnat
  Cc: Jason-JH . Lin, Singo Chang, linux-kernel, dri-devel,
	Project_Global_Chrome_Upstream_Group, Jason-ch Chen, Nancy Lin,
	Johnson Wang, Shawn Sung, Matthias Brugger, linux-mediatek,
	linux-arm-kernel

Add this patch series to fix some mediatek-drm coverity issues.

Change in v3:
1. swap Fixes and Signed tag.
2. change cast (__u64) to '=' then ' *='.

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   |  3 ++-
 drivers/gpu/drm/mediatek/mtk_drm_plane.c | 28 ++++++++++++------------
 4 files changed, 22 insertions(+), 21 deletions(-)

-- 
2.18.0


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-07-18 15:31 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-21 10:22 [PATCH v3 0/4] Fix mediatek-drm coverity issues Jason-JH.Lin
2023-06-21 10:22 ` [PATCH v3 1/4] drm/mediatek: Remove freeing not dynamic allocated memory Jason-JH.Lin
2023-06-21 12:12   ` Alexandre Mergnat
2023-07-10  4:01   ` CK Hu (胡俊光)
2023-06-21 10:22 ` [PATCH v3 2/4] drm/mediatek: Add cnt checking for coverity issue Jason-JH.Lin
2023-06-21 12:15   ` Alexandre Mergnat
2023-07-10  6:45   ` CK Hu (胡俊光)
2023-06-21 10:22 ` [PATCH v3 3/4] drm/mediatek: Add casting before assign Jason-JH.Lin
2023-06-21 12:34   ` Alexandre Mergnat
2023-06-22  8:02     ` Jason-JH Lin (林睿祥)
2023-07-12 13:07       ` Alexandre Mergnat
2023-07-14  5:45   ` CK Hu (胡俊光)
2023-07-14  6:45     ` Jason-JH Lin (林睿祥)
2023-07-17 13:17       ` David Laight
2023-07-18 15:30         ` Jason-JH Lin (林睿祥)
2023-06-21 10:22 ` [PATCH v3 4/4] drm/mediatek: Fix dereference before null check Jason-JH.Lin
2023-06-21 12:38   ` Alexandre Mergnat
2023-07-14  5:52   ` CK Hu (胡俊光)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox