[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1342769945-6999-1-git-send-email-siglesias@igalia.com>
Date: Fri, 20 Jul 2012 09:39:03 +0200
From: Samuel Iglesias Gonsálvez
<siglesias@...lia.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Samuel Iglesias Gonsálvez
<siglesias@...lia.com>, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org,
industrypack-devel@...ts.sourceforge.net
Subject: [PATCH 1/3] Staging: ipack/bridges/tpci200: avoid kernel bug when uninstalling a device
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@...lia.com>
---
drivers/staging/ipack/bridges/tpci200.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists