summaryrefslogtreecommitdiff
path: root/drivers/staging/ipack
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>2012-05-25 08:03:04 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-07 05:20:30 (GMT)
commitca2d2bb6618396ec0a79b182fcd1591ef62b07cb (patch)
treeab80f1a1d1d99002c27670b94cf1c006ad78e84b /drivers/staging/ipack
parent597d473f163a1672262b845ede8a65afdf1b27c6 (diff)
downloadlinux-fsl-qoriq-ca2d2bb6618396ec0a79b182fcd1591ef62b07cb.tar.xz
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: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ipack')
-rw-r--r--drivers/staging/ipack/bridges/tpci200.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/ipack/bridges/tpci200.c b/drivers/staging/ipack/bridges/tpci200.c
index 6751625..e04cb8a 100644
--- a/drivers/staging/ipack/bridges/tpci200.c
+++ b/drivers/staging/ipack/bridges/tpci200.c
@@ -290,8 +290,6 @@ static void tpci200_unregister(struct tpci200_board *tpci200)
pci_disable_device(tpci200->info->pdev);
pci_dev_put(tpci200->info->pdev);
- kfree(tpci200->info);
-
for (i = 0; i < TPCI200_NB_SLOT; i++) {
tpci200->slots[i].io_phys.address = NULL;
tpci200->slots[i].io_phys.size = 0;