projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d6132b
)
sdio: handle null tuples
author
Pierre Ossman
<drzeus@drzeus.cx>
Thu, 5 Mar 2009 18:38:38 +0000
(19:38 +0100)
committer
Pierre 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
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/sdio_cis.c
b/drivers/mmc/core/sdio_cis.c
index 6ba93f599281f3eb53659fc32dc93cff15e3a6d6..963f2937c5e37da83819249826995aa098751f99 100644
(file)
--- 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;