From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: drm/radeon: Fix OOB read in MC register table init Date: Thu, 04 Jun 2026 16:32:17 +1000 Message-ID: In-Reply-To: <20260529121436.1633842-1-n.zhandarovich@fintech.ru> References: <20260529121436.1633842-1-n.zhandarovich@fintech.ru> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Overall Series Review Subject: drm/radeon: Fix OOB read in MC register table init Author: Nikita Zhandarovich Patches: 1 Reviewed: 2026-06-04T16:32:17.369199 --- This is a single, straightforward defensive fix for a potential out-of-bounds read in the radeon driver's ATOMBIOS MC register table initialization. The patch is correct, minimal, and mirrors an identical fix already applied to the amdgpu counterpart (commit 51dfc0a4d609). The bug is real: when `i == 0` and `DATA_EQU_PREV` is set, `mc_data[i - 1]` reads `mc_data[-1]`, which is an OOB access into the preceding struct member or adjacent memory. **Verdict: Looks good.** No concerns with correctness. --- --- Generated by Claude Code Patch Reviewer