summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>2012-07-20 09:39:03 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-17 09:26:51 -0800
commit865367e38353b88ca15542fdcad3ca76742b9344 (patch)
treeaddb22c2ac3e46de8efe1db14fd60d543804f693 /drivers
parent1939f417c6048f552784daf5f639003294adcbc8 (diff)
Staging: ipack/bridges/tpci200: avoid kernel bug when uninstalling a device
commit 9e58d05a1b24d2c0471c3b4df8f473a7543d7647 upstream. Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/ipack/bridges/tpci200.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ipack/bridges/tpci200.c b/drivers/staging/ipack/bridges/tpci200.c
index 2b83fa8e550a..a7fb2cfe51ee 100644
--- a/drivers/staging/ipack/bridges/tpci200.c
+++ b/drivers/staging/ipack/bridges/tpci200.c
@@ -604,8 +604,8 @@ static int tpci200_slot_unregister(struct ipack_device *dev)
if (mutex_lock_interruptible(&tpci200->mutex))
return -ERESTARTSYS;
- ipack_device_unregister(dev);
tpci200->slots[dev->slot].dev = NULL;
+ ipack_device_unregister(dev);
mutex_unlock(&tpci200->mutex);
return 0;