From: jsg Date: Mon, 19 Jul 2021 10:47:20 +0000 (+0000) Subject: drm/amd/display: fix incorrrect valid irq check X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ff34f1596e0f0fe2379808c1fc4449624e582a40;p=openbsd drm/amd/display: fix incorrrect valid irq check From Guchun Chen b13574fa83ac55a9c3aa7f075ef5db62b444f7b5 in linux 5.10.y/5.10.51 e38ca7e422791a4d1c01e56dbf7f9982db0ed365 in mainline linux --- 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 \