Skip to content

Commit

Permalink
Staging: ipack/bridges/tpci200: avoid kernel bug when uninstalling a …
Browse files Browse the repository at this point in the history
…device

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Samuel Iglesias Gonsálvez authored and Greg Kroah-Hartman committed Aug 14, 2012
1 parent c197de2 commit 9e58d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/ipack/bridges/tpci200.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9e58d05

Please sign in to comment.