]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sdio: handle null tuples
authorPierre Ossman <drzeus@drzeus.cx>
Thu, 5 Mar 2009 18:38:38 +0000 (19:38 +0100)
committerPierre Ossman <drzeus@drzeus.cx>
Tue, 24 Mar 2009 20:30:00 +0000 (21:30 +0100)
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/core/sdio_cis.c

index 6ba93f599281f3eb53659fc32dc93cff15e3a6d6..963f2937c5e37da83819249826995aa098751f99 100644 (file)
@@ -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;