From: Chris Ball Date: Wed, 13 Apr 2011 20:28:34 +0000 (-0400) Subject: mmc: card: Fix use of uninitialized data in mmc_blk_issue_rw_rq. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=62929e4be3fe4cc632b3b03645e083c6548de531;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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) 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;