diff options
| author | Sujit Reddy Thumma <sthumma@codeaurora.org> | 2013-12-05 19:35:43 +0530 |
|---|---|---|
| committer | Subhash Jadavani <subhashj@codeaurora.org> | 2016-05-31 15:25:56 -0700 |
| commit | 02bf86d2b1559651b6f86771167f00b0037ca06a (patch) | |
| tree | 207f55bb693079f605a13339c687a97b64b0ba40 /include/linux/mmc | |
| parent | 96bf883665a1f84b543765ead0355cd273b961c9 (diff) | |
mmc: core: fix buffer overflow during memcpy of ext_csd
Fix buffer overflow while caching the mmc ext_csd content.
Also, to avoid duplicate allocation keep the allocated ext_csd
till the card is removed.
CRs-Fixed: 583929
Change-Id: I5d69e37f6fd1f5249479d454c353be050df40b6d
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
[subhashj@codeaurora.org: fixed trivial merge conflicts]
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Diffstat (limited to 'include/linux/mmc')
| -rw-r--r-- | include/linux/mmc/card.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h index 258efa6c2edc..809ba6f07147 100644 --- a/include/linux/mmc/card.h +++ b/include/linux/mmc/card.h @@ -345,7 +345,7 @@ struct mmc_card { struct mmc_wr_pack_stats wr_pack_stats; /* packed commands stats*/ struct notifier_block reboot_notify; bool issue_long_pon; - u8 cached_ext_csd; + u8 *cached_ext_csd; }; /* |
