drm/amd/display: Check gpio_id before used as array index
authorjsg <jsg@openbsd.org>
Mon, 9 Sep 2024 08:44:25 +0000 (08:44 +0000)
committerjsg <jsg@openbsd.org>
Mon, 9 Sep 2024 08:44:25 +0000 (08:44 +0000)
commita691e3193c9e17f9015e67baee6c0474975396e4
tree986189cd8ead513fe56c2a2c2ab61dd0bfbf95db
parente361f482e8de51ae3d45c86611b29785edbcc5a1
drm/amd/display: Check gpio_id before used as array index

From Alex Hung
08e7755f754e3d2cef7d3a7da538d33526bd6f7c in linux-6.6.y/6.6.50
2a5626eeb3b5eec7a36886f9556113dd93ec8ed6 in mainline linux
sys/dev/pci/drm/amd/display/dc/gpio/gpio_service.c