All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/amd/display: fix incorrrect valid irq check
@ 2021-06-28  9:27 Guchun Chen
  2021-06-28  9:27 ` [PATCH 2/2] drm/amd/display: fix null pointer access in gpu reset Guchun Chen
  0 siblings, 1 reply; 4+ messages in thread
From: Guchun Chen @ 2021-06-28  9:27 UTC (permalink / raw)
  To: amd-gfx, rodrigo.siqueira, aurabindo.pillai, harry.wentland,
	tianci.yin, alexander.deucher
  Cc: Guchun Chen

valid DAL irq should be < DAL_IRQ_SOURCES_NUMBER.

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
---
 drivers/gpu/drm/amd/display/dc/irq_types.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/irq_types.h b/drivers/gpu/drm/amd/display/dc/irq_types.h
index 5f9346622301..1139b9eb9f6f 100644
--- a/drivers/gpu/drm/amd/display/dc/irq_types.h
+++ b/drivers/gpu/drm/amd/display/dc/irq_types.h
@@ -165,7 +165,7 @@ enum irq_type
 };
 
 #define DAL_VALID_IRQ_SRC_NUM(src) \
-	((src) <= DAL_IRQ_SOURCES_NUMBER && (src) > DC_IRQ_SOURCE_INVALID)
+	((src) < DAL_IRQ_SOURCES_NUMBER && (src) > DC_IRQ_SOURCE_INVALID)
 
 /* Number of Page Flip IRQ Sources. */
 #define DAL_PFLIP_IRQ_SRC_NUM \
-- 
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

end of thread, other threads:[~2021-06-28 13:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28  9:27 [PATCH 1/2] drm/amd/display: fix incorrrect valid irq check Guchun Chen
2021-06-28  9:27 ` [PATCH 2/2] drm/amd/display: fix null pointer access in gpu reset Guchun Chen
2021-06-28  9:50   ` Quan, Evan
2021-06-28 13:54   ` Harry Wentland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.