Commit ca2d2bb6 authored by Samuel Iglesias Gonsalvez's avatar Samuel Iglesias Gonsalvez Committed by Greg Kroah-Hartman

Staging: ipack/bridges/tpci200: avoid dereference of a freed tpci200->info

tpci200->info is used later when uninstalling the module. As there is another
kfree in the proper place, this patch removes the wrong one.
Signed-off-by: default avatarSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 597d473f
...@@ -290,8 +290,6 @@ static void tpci200_unregister(struct tpci200_board *tpci200) ...@@ -290,8 +290,6 @@ static void tpci200_unregister(struct tpci200_board *tpci200)
pci_disable_device(tpci200->info->pdev); pci_disable_device(tpci200->info->pdev);
pci_dev_put(tpci200->info->pdev); pci_dev_put(tpci200->info->pdev);
kfree(tpci200->info);
for (i = 0; i < TPCI200_NB_SLOT; i++) { for (i = 0; i < TPCI200_NB_SLOT; i++) {
tpci200->slots[i].io_phys.address = NULL; tpci200->slots[i].io_phys.address = NULL;
tpci200->slots[i].io_phys.size = 0; tpci200->slots[i].io_phys.size = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment