diff options
| author | Jamie Gibbons <[email protected]> | 2026-05-18 15:17:10 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-06-08 15:38:25 -0600 |
| commit | 1173e02c9880d9f7d1bf15308490493332b03a61 (patch) | |
| tree | 8ca4530f21b577db7923083de8ac9e1505967cd6 /include/linux/completion.h | |
| parent | a05adbb9b30115ef7d04668d35650f311458dd2d (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/completion.h')
0 files changed, 0 insertions, 0 deletions
