[PATCH 24/38] pcmcia: add missing put_device call

Levente Kurusa levex at linux.com
Thu Dec 19 10:03:35 EST 2013


This is required so that we give up the last reference to the device.

Signed-off-by: Levente Kurusa <levex at linux.com>
---
 drivers/pcmcia/cs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pcmcia/cs.c b/drivers/pcmcia/cs.c
index 5292db6..5057de9 100644
--- a/drivers/pcmcia/cs.c
+++ b/drivers/pcmcia/cs.c
@@ -607,6 +607,7 @@ static int pccardd(void *__skt)
 	if (ret) {
 		dev_printk(KERN_WARNING, &skt->dev,
 			   "PCMCIA: unable to register socket\n");
+		put_device(&skt->dev);
 		skt->thread = NULL;
 		complete(&skt->thread_done);
 		return 0;
-- 
1.8.3.1




More information about the linux-pcmcia mailing list