summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuchun Chen <guchun.chen@amd.com>2021-06-28 17:03:48 +0800
committerAlex Deucher <alexander.deucher@amd.com>2021-07-01 00:02:41 -0400
commite38ca7e422791a4d1c01e56dbf7f9982db0ed365 (patch)
tree6a0a65591dfb51817253eeba484b00aa341bf337
parente2329e74a615cc58b25c42b7aa1477a5e3f6a435 (diff)
downloadlinux-e38ca7e422791a4d1c01e56dbf7f9982db0ed365.tar.gz
linux-e38ca7e422791a4d1c01e56dbf7f9982db0ed365.tar.bz2
linux-e38ca7e422791a4d1c01e56dbf7f9982db0ed365.zip
drm/amd/display: fix incorrrect valid irq check
valid DAL irq should be < DAL_IRQ_SOURCES_NUMBER. Signed-off-by: Guchun Chen <guchun.chen@amd.com> Reviewed-and-tested-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
-rw-r--r--drivers/gpu/drm/amd/display/dc/irq_types.h2
1 files changed, 1 insertions, 1 deletions
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 \