From: Pierre Ossman Date: Thu, 5 Mar 2009 18:38:38 +0000 (+0100) Subject: sdio: handle null tuples X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c8d718f1037950107f13607ff0b696ffe63df76a;p=linux-beck.git sdio: handle null tuples Signed-off-by: Pierre Ossman --- diff --git a/drivers/mmc/core/sdio_cis.c b/drivers/mmc/core/sdio_cis.c index 6ba93f599281..963f2937c5e3 100644 --- a/drivers/mmc/core/sdio_cis.c +++ b/drivers/mmc/core/sdio_cis.c @@ -223,6 +223,10 @@ static int sdio_read_cis(struct mmc_card *card, struct sdio_func *func) if (tpl_code == 0xff) break; + /* null entries have no link field or data */ + if (tpl_code == 0x00) + continue; + ret = mmc_io_rw_direct(card, 0, 0, ptr++, 0, &tpl_link); if (ret) break;