Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82998
b: refs/heads/master
c: 1523508
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Linus Torvalds committed Feb 5, 2008
1 parent fd98870 commit 0018027
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 5a1c3e1aa977457ded6fd0739e032c9684bf23bd
refs/heads/master: 1523508d6321436b6edfcd99aab04a344f9aed3f
4 changes: 3 additions & 1 deletion trunk/drivers/pcmcia/cardbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ int read_cb_mem(struct pcmcia_socket * s, int space, u_int addr, u_int len, void
/* Config space? */
if (space == 0) {
if (addr + len > 0x100)
goto fail;
goto failput;
for (; len; addr++, ptr++, len--)
pci_read_config_byte(dev, addr, ptr);
return 0;
Expand Down Expand Up @@ -171,6 +171,8 @@ int read_cb_mem(struct pcmcia_socket * s, int space, u_int addr, u_int len, void
memcpy_fromio(ptr, s->cb_cis_virt + addr, len);
return 0;

failput:
pci_dev_put(dev);
fail:
memset(ptr, 0xff, len);
return -1;
Expand Down

0 comments on commit 0018027

Please sign in to comment.