summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2009-03-05 19:38:38 +0100
committerPierre Ossman <drzeus@drzeus.cx>2009-03-24 21:30:00 +0100
commitc8d718f1037950107f13607ff0b696ffe63df76a (patch)
treeb0d6cf5baf2d0453fb6c1d98e5e6f6884679d79b /drivers/mmc
parent0d6132ba0b006dd2bea9ba0c7b6b2f690cd95c40 (diff)
downloadop-kernel-dev-c8d718f1037950107f13607ff0b696ffe63df76a.zip
op-kernel-dev-c8d718f1037950107f13607ff0b696ffe63df76a.tar.gz
sdio: handle null tuples
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/sdio_cis.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/core/sdio_cis.c b/drivers/mmc/core/sdio_cis.c
index 6ba93f5..963f293 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;
OpenPOWER on IntegriCloud