Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166945
b: refs/heads/master
c: a1125b1
h: refs/heads/master
i:
  166943: 67d7f50
v: v3
  • Loading branch information
David Vrabel authored and Linus Torvalds committed Oct 8, 2009
1 parent f6b4874 commit 271761c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: a54fed9f70a2765f4476e1ce3d691a2f31df258f
refs/heads/master: a1125b1e41228bc2e5b4f023004a4280282d1dab
7 changes: 3 additions & 4 deletions trunk/drivers/mmc/core/sdio_cis.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ static int cistpl_vers_1(struct mmc_card *card, struct sdio_func *func,
unsigned i, nr_strings;
char **buffer, *string;

/* Find all null-terminated (including zero length) strings in
the TPLLV1_INFO field. Trailing garbage is ignored. */
buf += 2;
size -= 2;

Expand All @@ -39,11 +41,8 @@ static int cistpl_vers_1(struct mmc_card *card, struct sdio_func *func,
if (buf[i] == 0)
nr_strings++;
}

if (nr_strings < 4) {
printk(KERN_WARNING "SDIO: ignoring broken CISTPL_VERS_1\n");
if (nr_strings == 0)
return 0;
}

size = i;

Expand Down

0 comments on commit 271761c

Please sign in to comment.