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:
87f6119
)
mmc: core: Fix use of uninitialized data in mmc_send_if_cond.
author
Chris Ball
<cjb@laptop.org>
Wed, 13 Apr 2011 20:25:30 +0000
(16:25 -0400)
committer
Chris Ball
<cjb@laptop.org>
Wed, 25 May 2011 01:01:42 +0000
(21:01 -0400)
mmc_send_if_cond did not zero out mmc_command on stack.
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/sd_ops.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/core/sd_ops.c
b/drivers/mmc/core/sd_ops.c
index 71fdb07fd8dede2c81ad0a3e9f8411ffca82d246..da508497a6e049c8d733cb240866e956aa907e7e 100644
(file)
--- a/
drivers/mmc/core/sd_ops.c
+++ b/
drivers/mmc/core/sd_ops.c
@@
-201,6
+201,8
@@
int mmc_send_if_cond(struct mmc_host *host, u32 ocr)
static const u8 test_pattern = 0xAA;
u8 result_pattern;
+ memset(&cmd, 0, sizeof(struct mmc_command));
+
/*
* To support SD 2.0 cards, we must always invoke SD_SEND_IF_COND
* before SD_APP_OP_COND. This command will harmlessly fail for