From: Chris Ball <cjb@laptop.org>
To: Andrei Warkentin <andreiw@motorola.com>
Cc: linux-mmc@vger.kernel.org
Subject: Re: [PATCH] MMC: Fix use of uninitialized data in mmc_cmd_app.
Date: Wed, 13 Apr 2011 16:24:07 -0400 [thread overview]
Message-ID: <m3aaftvr14.fsf@pullcord.laptop.org> (raw)
In-Reply-To: <1302726792-4733-1-git-send-email-andreiw@motorola.com> (Andrei Warkentin's message of "Wed, 13 Apr 2011 15:33:12 -0500")
Hi Andrei,
On Wed, Apr 13 2011, Andrei Warkentin wrote:
> 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) {
Thanks, pushed to mmc-next for .40. I found a few more which I'm about
to post.
- Chris.
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
next prev parent reply other threads:[~2011-04-13 20:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2011-04-13 21:04 ` John Calixto
2011-04-13 21:40 ` Chris Ball
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3aaftvr14.fsf@pullcord.laptop.org \
--to=cjb@laptop.org \
--cc=andreiw@motorola.com \
--cc=linux-mmc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.