Claude review: drm/msm/dp: add dp_display_get_panel() to initialize DP panel

Claude Code Review Bot
2026-04-12T00:16:18Z

Patch Review

**Bug — wrong variable in IS_ERR check**:
```c
+ dp_panel = msm_dp_panel_get(&dp->msm_dp_display.pdev->dev, dp->aux, dp->link,
+ dp->link_base, dp->mst2link_base, dp->mst3link_base,
+ dp->pixel_base[0]);
+
+ if (IS_ERR(dp->panel)) {
+ DRM_ERROR("failed to initialize panel\n");
+ return NULL;
+ }
```
This checks `IS_ERR(dp->panel)` — the *existing* SST panel — instead of `IS_ERR(dp_panel)` — the *newly allocated* MST panel. If `msm_dp_panel_get()` returns an error pointer, this code will skip the error check and proceed to dereference the error pointer in the `memcpy` below, causing a kernel crash. This is a clear bug that must be fixed before merge.

---
Generated by Claude Code Patch Reviewer