git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
249135d
)
PNP / card: add missing put_device() call
author
Levente Kurusa
<levex@linux.com>
Thu, 19 Dec 2013 15:03:36 +0000
(16:03 +0100)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Sun, 5 Jan 2014 21:50:06 +0000
(22:50 +0100)
This is required so that we give up the last reference to the device.
Signed-off-by: Levente Kurusa <levex@linux.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pnp/card.c
patch
|
blob
|
history
diff --git
a/drivers/pnp/card.c
b/drivers/pnp/card.c
index
bc00693
..
874c236
100644
(file)
--- a/
drivers/pnp/card.c
+++ b/
drivers/pnp/card.c
@@
-239,6
+239,7
@@
int pnp_add_card(struct pnp_card *card)
error = device_register(&card->dev);
if (error) {
dev_err(&card->dev, "could not register (err=%d)\n", error);
+ put_device(&card->dev);
return error;
}