All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MMC: Fix use of uninitialized data in mmc_cmd_app.
@ 2011-04-13 20:33 Andrei Warkentin
  2011-04-13 20:24 ` Chris Ball
  2011-04-13 21:04 ` John Calixto
  0 siblings, 2 replies; 4+ messages in thread
From: Andrei Warkentin @ 2011-04-13 20:33 UTC (permalink / raw)
  To: linux-mmc; +Cc: cjb, Andrei Warkentin

mmc_cmd_app did not zero out mmc_command on stack.

Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
---
 drivers/mmc/core/sd_ops.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/mmc/core/sd_ops.c b/drivers/mmc/core/sd_ops.c
index 76af349..71fdb07 100644
--- a/drivers/mmc/core/sd_ops.c
+++ b/drivers/mmc/core/sd_ops.c
@@ -29,6 +29,8 @@ static int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card)
 	BUG_ON(!host);
 	BUG_ON(card && (card->host != host));
 
+	memset(&cmd, 0, sizeof(struct mmc_command));
+
 	cmd.opcode = MMC_APP_CMD;
 
 	if (card) {
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-04-13 21:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-13 20:33 [PATCH] MMC: Fix use of uninitialized data in mmc_cmd_app Andrei Warkentin
2011-04-13 20:24 ` Chris Ball
2011-04-13 21:04 ` John Calixto
2011-04-13 21:40   ` Chris Ball

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.