* [PATCH 2/2] mmc: card: Fix use of uninitialized data in mmc_blk_issue_rw_rq.
@ 2011-04-13 20:32 Chris Ball
0 siblings, 0 replies; only message in thread
From: Chris Ball @ 2011-04-13 20:32 UTC (permalink / raw)
To: linux-mmc; +Cc: Chris Ball
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 | 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;
--
1.7.0.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-13 20:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-13 20:32 [PATCH 2/2] mmc: card: Fix use of uninitialized data in mmc_blk_issue_rw_rq Chris Ball
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).