projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b331e6
)
sdio: handle cis end marker in link field
author
Pierre Ossman
<drzeus@drzeus.cx>
Thu, 5 Mar 2009 18:37:28 +0000
(19:37 +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
|
blame
|
history
diff --git
a/drivers/mmc/core/sdio_cis.c
b/drivers/mmc/core/sdio_cis.c
index 956bd7677502c3c1ebe69d3c03f65641abce060e..6ba93f599281f3eb53659fc32dc93cff15e3a6d6 100644
(file)
--- a/
drivers/mmc/core/sdio_cis.c
+++ b/
drivers/mmc/core/sdio_cis.c
@@
-227,6
+227,10
@@
static int sdio_read_cis(struct mmc_card *card, struct sdio_func *func)
if (ret)
break;
+ /* a size of 0xff also means we're done */
+ if (tpl_link == 0xff)
+ break;
+
this = kmalloc(sizeof(*this) + tpl_link, GFP_KERNEL);
if (!this)
return -ENOMEM;