aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGuangshuo Li <lgs201920130244@gmail.com>2026-09-16 00:13:10 +0800
committerUlf Hansson <ulfh@kernel.org>2026-09-28 17:57:23 +0200
commit29ee8cf18a21b02cd0b2e35f741b61cd1fe3e14e (patch)
tree92cbbfd8723c62195cfab60e5ca51bd6da6057a4 /scripts
parent0f4d4424fc1d651ec3fa63a0a8060ba9087eb0ec (diff)
mmc: cavium-thunderx: destroy slot platform devices on remove
thunder_mmc_probe() creates host->slot_pdev[i] with of_platform_device_create(), while thunder_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 ThunderX MMC controller is removed. Destroy each slot platform device during removal after cleaning up the corresponding MMC slot, matching the probe failure cleanup path. Keep an extra device reference around of_platform_device_destroy() as done in the existing error path. This issue was found by manual code inspection. Fixes: 166bac38c3c56 ("mmc: cavium: Add MMC PCI driver for ThunderX 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