Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37652
b: refs/heads/master
c: 74ae322
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Oct 1, 2006
1 parent 21fcd8f commit 06f3b78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: df10f4edd5f097251c62f1d4a3adea778100b4a8
refs/heads/master: 74ae3221818eaf3884ceac931ba3cd2c00045483
5 changes: 4 additions & 1 deletion trunk/drivers/pcmcia/cardbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down

0 comments on commit 06f3b78

Please sign in to comment.