diff options
author | Samuel Iglesias Gonsálvez <siglesias@igalia.com> | 2012-07-20 07:39:03 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-14 01:53:55 (GMT) |
commit | 9e58d05a1b24d2c0471c3b4df8f473a7543d7647 (patch) | |
tree | 0d018de34db8e42baa9d9ff3d3cc746f8210d72e | |
parent | c197de2bea11cabbd6f9ad8c6e3f82faa5fc8497 (diff) | |
download | linux-fsl-qoriq-9e58d05a1b24d2c0471c3b4df8f473a7543d7647.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ipack/bridges/tpci200.c b/drivers/staging/ipack/bridges/tpci200.c index 2b83fa8..a7fb2cf 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; |