projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df10f4e
)
[PATCH] cardbus: switch to ref counting/hotplug safe API
author
Alan Cox
<alan@lxorguk.ukuu.org.uk>
Sun, 1 Oct 2006 06:28:00 +0000
(23:28 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sun, 1 Oct 2006 07:39:23 +0000
(
00:39
-0700)
Signed-off-by: Alan Cox <alan@redhat.com>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/pcmcia/cardbus.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pcmcia/cardbus.c
b/drivers/pcmcia/cardbus.c
index 3f6d51d11374063b0f3e0c86de1d75e23c1f3b34..2d7effe7990d9c67136a44617e31bed2290a7026 100644
(file)
--- a/
drivers/pcmcia/cardbus.c
+++ b/
drivers/pcmcia/cardbus.c
@@
-138,7
+138,7
@@
int read_cb_mem(struct pcmcia_socket * s, int space, u_int addr, u_int len, void
cs_dbg(s, 3, "read_cb_mem(%d, %#x, %u)\n", space, addr, len);
- dev = pci_
find_slot(s->cb_dev->subordinate->number
, 0);
+ dev = pci_
get_slot(s->cb_dev->subordinate
, 0);
if (!dev)
goto fail;
@@
-152,6
+152,9
@@
int read_cb_mem(struct pcmcia_socket * s, int space, u_int addr, u_int len, void
}
res = dev->resource + space - 1;
+
+ pci_dev_put(dev);
+
if (!res->flags)
goto fail;