Sfoglia il codice sorgente

sdio: handle null tuples

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Pierre Ossman 16 anni fa
parent
commit
c8d718f103
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      drivers/mmc/core/sdio_cis.c

+ 4 - 0
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;