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:
30574ed
)
mmc: card: Fix use of uninitialized data in mmc_blk_issue_rw_rq.
author
Chris Ball
<cjb@laptop.org>
Wed, 13 Apr 2011 20:28:34 +0000
(16:28 -0400)
committer
Chris Ball
<cjb@laptop.org>
Wed, 25 May 2011 01:01:47 +0000
(21:01 -0400)
mmc_blk_issue_rw_rq did not zero out mmc_command on stack.
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/block.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/card/block.c
b/drivers/mmc/card/block.c
index
c209953
..
9e30cf6
100644
(file)
--- a/
drivers/mmc/card/block.c
+++ b/
drivers/mmc/card/block.c
@@
-504,6
+504,7
@@
static int mmc_blk_issue_rw_rq(struct mmc_queue *mq, struct request *req)
struct mmc_command cmd;
u32 readcmd, writecmd, status = 0;
+ memset(&cmd, 0, sizeof(struct mmc_command));
memset(&brq, 0, sizeof(struct mmc_blk_request));
brq.mrq.cmd = &brq.cmd;
brq.mrq.data = &brq.data;