diff options
author | Andy Shevchenko <[email protected]> | 2024-08-22 14:30:53 +0300 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-08-22 13:34:05 +0100 |
commit | 9a8fc292dd93b93db30e01c94c0da4c944852f28 (patch) | |
tree | 643277a2541a9b48d53d5166170c207cc87d5e69 /scripts/generate_rust_analyzer.py | |
parent | 783bf5d09f86b9736605f3e01a3472e55ef98ff8 (diff) |
spi: pxa2xx: Do not override dev->platform_data on probe
The platform_data field may be supplied by legacy board code.
In other cases we override it, and module remove and probe cycle
will crash the kernel since it will carry a stale pointer.
Fix this by supplying a third argument to the pxa2xx_spi_probe()
and avoid overriding dev->platform_data.
Reported-by: Hao Ma <[email protected]>
Fixes: cc160697a576 ("spi: pxa2xx: Convert PCI driver to use spi-pxa2xx code directly")
Fixes: 3d8f037fbcab ("spi: pxa2xx: Move platform driver to a separate file")
Fixes: 20ade9b9771c ("spi: pxa2xx: Extract pxa2xx_spi_platform_*() callbacks")
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions