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>
This commit is contained in:
Samuel Iglesias Gonsálvez 2012-07-20 09:39:03 +02:00 committed by Greg Kroah-Hartman
parent c197de2bea
commit 9e58d05a1b

View File

@ -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;