summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJamie Gibbons <[email protected]>2026-05-18 15:17:10 +0100
committerTom Rini <[email protected]>2026-06-08 15:38:25 -0600
commit1173e02c9880d9f7d1bf15308490493332b03a61 (patch)
tree8ca4530f21b577db7923083de8ac9e1505967cd6 /include/linux
parenta05adbb9b30115ef7d04668d35650f311458dd2d (diff)
mailbox: mpfs-mbox: fix Driver Model private data handling
The MPFS mailbox driver declares priv_auto but also allocates a second private data structure in the legacy probe path and overwrites the device’s private pointer using dev_set_priv(). This results in leaking the auto-allocated private data and replacing the driver’s private state mid-probe, which is incorrect usage of the U-Boot Driver Model and can lead to undefined behavior. Remove the redundant allocation and dev_set_priv() call so that the driver consistently uses the auto-allocated private data provided by U-Boot. Fixes: 111e9bf6a5ac ("mailbox: add PolarFire SoC mailbox driver") Signed-off-by: Jamie Gibbons <[email protected]> Reviewed-by: Conor Dooley <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions