drm/amd/display: Check num_valid_sets before accessing reader_wm_sets[]
authorjsg <jsg@openbsd.org>
Mon, 9 Sep 2024 08:51:04 +0000 (08:51 +0000)
committerjsg <jsg@openbsd.org>
Mon, 9 Sep 2024 08:51:04 +0000 (08:51 +0000)
commit3e1f83d482c648ae31e3eeaaa98c7035c3040844
tree33cfa953c6db46bea022b01403bfb0f362adb885
parent2a65b6dfc780c46209d28a2826add5d6656fbbd0
drm/amd/display: Check num_valid_sets before accessing reader_wm_sets[]

From Alex Hung
21f9cb44f8c60bf6c26487d428b1a09ad3e8aebf in linux-6.6.y/6.6.50
b38a4815f79b87efb196cd5121579fc51e29a7fb in mainline linux
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c