summaryrefslogtreecommitdiffstats
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-08-13 18:53:55 -0700
commit9e58d05a1b24d2c0471c3b4df8f473a7543d7647 (patch)
tree0d018de34db8e42baa9d9ff3d3cc746f8210d72e
parentc197de2bea11cabbd6f9ad8c6e3f82faa5fc8497 (diff)
downloadlinux-stable-9e58d05a1b24d2c0471c3b4df8f473a7543d7647.tar.gz
linux-stable-9e58d05a1b24d2c0471c3b4df8f473a7543d7647.tar.bz2
linux-stable-9e58d05a1b24d2c0471c3b4df8f473a7543d7647.zip
Staging: ipack/bridges/tpci200: avoid kernel bug when uninstalling a device
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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;