Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8d718f1 authored by Pierre Ossman's avatar Pierre Ossman
Browse files

sdio: handle null tuples



Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent 0d6132ba
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;