diff options
Diffstat (limited to 'drivers/mmc/core')
-rw-r--r-- | drivers/mmc/core/sdio_cis.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/core/sdio_cis.c b/drivers/mmc/core/sdio_cis.c index 956bd7677502..6ba93f599281 100644 --- a/drivers/mmc/core/sdio_cis.c +++ b/drivers/mmc/core/sdio_cis.c | |||
@@ -227,6 +227,10 @@ static int sdio_read_cis(struct mmc_card *card, struct sdio_func *func) | |||
227 | if (ret) | 227 | if (ret) |
228 | break; | 228 | break; |
229 | 229 | ||
230 | /* a size of 0xff also means we're done */ | ||
231 | if (tpl_link == 0xff) | ||
232 | break; | ||
233 | |||
230 | this = kmalloc(sizeof(*this) + tpl_link, GFP_KERNEL); | 234 | this = kmalloc(sizeof(*this) + tpl_link, GFP_KERNEL); |
231 | if (!this) | 235 | if (!this) |
232 | return -ENOMEM; | 236 | return -ENOMEM; |