diff options
author | Chris Ball <cjb@laptop.org> | 2011-04-13 20:28:34 (GMT) |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-05-25 01:01:47 (GMT) |
commit | 62929e4be3fe4cc632b3b03645e083c6548de531 (patch) | |
tree | 811cae5f01b1130d23c49fc47869bb6adf9cf026 | |
parent | 30574ed143e10dd19295b7d80be55f2cd6764c6f (diff) | |
download | linux-fsl-qoriq-62929e4be3fe4cc632b3b03645e083c6548de531.tar.xz |
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>
-rw-r--r-- | drivers/mmc/card/block.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index c209953..9e30cf6 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) 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; |