aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/card
diff options
context:
space:
mode:
authorChris Ball <cjb@laptop.org>2011-04-13 16:28:34 -0400
committerChris Ball <cjb@laptop.org>2011-05-24 21:01:47 -0400
commit62929e4be3fe4cc632b3b03645e083c6548de531 (patch)
tree811cae5f01b1130d23c49fc47869bb6adf9cf026 /drivers/mmc/card
parent30574ed143e10dd19295b7d80be55f2cd6764c6f (diff)
mmc: card: Fix use of uninitialized data in mmc_blk_issue_rw_rq.
mmc_blk_issue_rw_rq did not zero out mmc_command on stack. Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/card')
-rw-r--r--drivers/mmc/card/block.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index c20995323348..9e30cf6db53c 100644
--- 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)
504 struct mmc_command cmd; 504 struct mmc_command cmd;
505 u32 readcmd, writecmd, status = 0; 505 u32 readcmd, writecmd, status = 0;
506 506
507 memset(&cmd, 0, sizeof(struct mmc_command));
507 memset(&brq, 0, sizeof(struct mmc_blk_request)); 508 memset(&brq, 0, sizeof(struct mmc_blk_request));
508 brq.mrq.cmd = &brq.cmd; 509 brq.mrq.cmd = &brq.cmd;
509 brq.mrq.data = &brq.data; 510 brq.mrq.data = &brq.data;