Commit 9e58d05a authored by Samuel Iglesias Gonsálvez's avatar Samuel Iglesias Gonsálvez Committed by Greg Kroah-Hartman

Staging: ipack/bridges/tpci200: avoid kernel bug when uninstalling a device

Signed-off-by: default avatarSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c197de2b
...@@ -604,8 +604,8 @@ static int tpci200_slot_unregister(struct ipack_device *dev) ...@@ -604,8 +604,8 @@ static int tpci200_slot_unregister(struct ipack_device *dev)
if (mutex_lock_interruptible(&tpci200->mutex)) if (mutex_lock_interruptible(&tpci200->mutex))
return -ERESTARTSYS; return -ERESTARTSYS;
ipack_device_unregister(dev);
tpci200->slots[dev->slot].dev = NULL; tpci200->slots[dev->slot].dev = NULL;
ipack_device_unregister(dev);
mutex_unlock(&tpci200->mutex); mutex_unlock(&tpci200->mutex);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment