From 02bf86d2b1559651b6f86771167f00b0037ca06a Mon Sep 17 00:00:00 2001 From: Sujit Reddy Thumma Date: Thu, 5 Dec 2013 19:35:43 +0530 Subject: 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 [subhashj@codeaurora.org: fixed trivial merge conflicts] Signed-off-by: Subhash Jadavani --- include/linux/mmc/card.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/linux') 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; }; /* -- cgit v1.2.3