projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a7a6b4
)
mmc: core: Fix use of uninitialized data in mmc_cmd_app.
author
Andrei Warkentin
<andreiw@motorola.com>
Wed, 13 Apr 2011 20:33:12 +0000
(15:33 -0500)
committer
Chris Ball
<cjb@laptop.org>
Wed, 25 May 2011 01:01:38 +0000
(21:01 -0400)
mmc_cmd_app did not zero out mmc_command on stack.
Reported-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/sd_ops.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/sd_ops.c
b/drivers/mmc/core/sd_ops.c
index
76af349
..
71fdb07
100644
(file)
--- a/
drivers/mmc/core/sd_ops.c
+++ b/
drivers/mmc/core/sd_ops.c
@@
-29,6
+29,8
@@
static int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card)
BUG_ON(!host);
BUG_ON(card && (card->host != host));
+ memset(&cmd, 0, sizeof(struct mmc_command));
+
cmd.opcode = MMC_APP_CMD;
if (card) {