commit | 0d6132ba0b006dd2bea9ba0c7b6b2f690cd95c40 | [log] [tgz] |
---|---|---|
author | Pierre Ossman <drzeus@drzeus.cx> | Thu Mar 05 19:37:28 2009 +0100 |
committer | Pierre Ossman <drzeus@drzeus.cx> | Tue Mar 24 21:30:00 2009 +0100 |
tree | 8678340b0a1a58364f6284b82466a97454639e6f | |
parent | 1b331e69a2313f6e857890c7c2c40e3e2a74367a [diff] |
sdio: handle cis end marker in link field Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
diff --git a/drivers/mmc/core/sdio_cis.c b/drivers/mmc/core/sdio_cis.c index 956bd76..6ba93f5 100644 --- a/drivers/mmc/core/sdio_cis.c +++ b/drivers/mmc/core/sdio_cis.c
@@ -227,6 +227,10 @@ 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;