aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGuangshuo Li <lgs201920130244@gmail.com>2026-09-15 23:57:24 +0800
committerUlf Hansson <ulfh@kernel.org>2026-09-28 17:55:27 +0200
commit0f4d4424fc1d651ec3fa63a0a8060ba9087eb0ec (patch)
tree80a828f5783f7435169a18fbea83b0d32445569e /scripts
parente1c6c10a6a70a69e29b04fcc1ebe4b9bcbc7a49a (diff)
mmc: cavium-octeon: destroy slot platform devices on remove
octeon_mmc_probe() creates host->slot_pdev[i] with of_platform_device_create(), while octeon_mmc_remove() does not destroy the child platform devices. The probe failure path removes each MMC slot and destroys its associated platform device, but the normal remove path only removes the MMC slot. As a result, the child platform devices remain registered after the Octeon MMC controller is removed. Destroy each slot platform device during removal after cleaning up the corresponding MMC slot, matching the probe failure cleanup path. This issue was found by manual code inspection. Fixes: 01d95843335c ("mmc: cavium: Add MMC support for Octeon SOCs.") Cc: stable@vger.kernel.org Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions