Commit e38ca7e4 authored by Guchun Chen's avatar Guchun Chen Committed by Alex Deucher

drm/amd/display: fix incorrrect valid irq check

valid DAL irq should be < DAL_IRQ_SOURCES_NUMBER.
Signed-off-by: default avatarGuchun Chen <guchun.chen@amd.com>
Reviewed-and-tested-by: default avatarEvan Quan <evan.quan@amd.com>
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent e2329e74
...@@ -165,7 +165,7 @@ enum irq_type ...@@ -165,7 +165,7 @@ enum irq_type
}; };
#define DAL_VALID_IRQ_SRC_NUM(src) \ #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. */ /* Number of Page Flip IRQ Sources. */
#define DAL_PFLIP_IRQ_SRC_NUM \ #define DAL_PFLIP_IRQ_SRC_NUM \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment