rsxx: Removing IDA on driver unload.
PATCH 2/4 rsxx: Removing IDA on driver unload.
From: Philip J Kelleher <[email protected]>
The driver was not releasing the IDA entry during
driver unload.
Signed-off-by Philip J Kelleher <[email protected]>
-------------------------------------------------------------------------------
drivers/block/rsxx/core.c +4 -0
@@ -1105,6 +1105,10 @@ static void rsxx_pci_remove(struct pci_dpci_disable_device (dev);pci_release_regions (dev); +spin_lock (&rsxx_ida_lock); +ida_remove (&rsxx_disk_ida, card->disk_id); +spin_unlock (&rsxx_ida_lock); +kfree (card); }