mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
sdio: handle cis end marker in link field
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
This commit is contained in:
parent
1b331e69a2
commit
0d6132ba0b
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue