forked from Minki/linux
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:
parent
c197de2bea
commit
9e58d05a1b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user