summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2021-07-19 10:47:21 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2021-07-19 10:47:21 +0000
commitbb2c74ee99cb55c9fb826bdb4010559809a2c0eb (patch)
tree61241ebd6cce3e3382cb7e684354a33a182fcaae /sys
parent60b7b3b47b155b64aff987f77b19ede0b5ee4044 (diff)
drm/amd/display: fix incorrrect valid irq check
From Guchun Chen b13574fa83ac55a9c3aa7f075ef5db62b444f7b5 in linux 5.10.y/5.10.51 e38ca7e422791a4d1c01e56dbf7f9982db0ed365 in mainline linux
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/amd/display/dc/irq_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/display/dc/irq_types.h b/sys/dev/pci/drm/amd/display/dc/irq_types.h
index d0ccd81ad5b..ad3e5621a17 100644
--- a/sys/dev/pci/drm/amd/display/dc/irq_types.h
+++ b/sys/dev/pci/drm/amd/display/dc/irq_types.h
@@ -163,7 +163,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 \