Skip to content

Commit

Permalink
sdio: handle cis end marker in link field
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
  • Loading branch information
Pierre Ossman committed Mar 24, 2009
1 parent 1b331e6 commit 0d6132b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/mmc/core/sdio_cis.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ static int sdio_read_cis(struct mmc_card *card, struct sdio_func *func)
if (ret)
break;

/* a size of 0xff also means we're done */
if (tpl_link == 0xff)
break;

this = kmalloc(sizeof(*this) + tpl_link, GFP_KERNEL);
if (!this)
return -ENOMEM;
Expand Down

0 comments on commit 0d6132b

Please sign in to comment.