public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Brian Norris <computersforpeace@gmail.com>
To: Akinobu Mita <akinobu.mita@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>,
	Jonathan McDowell <noodles@earth.li>,
	linux-mtd@lists.infradead.org
Subject: Re: [PATCH] mtd: nand: ams-delta: fix overwritten mtd_info->owner in initialization
Date: Thu, 15 Jan 2015 19:33:47 -0800	[thread overview]
Message-ID: <20150116033347.GE9759@ld-irv-0074> (raw)
In-Reply-To: <1420981640-16495-1-git-send-email-akinobu.mita@gmail.com>

On Sun, Jan 11, 2015 at 10:07:20PM +0900, Akinobu Mita wrote:
> In initialization routine, mtd_info->owner is overwritten by memset()
> just after being initialized.  This can be fixed by moving memset() calls
> to just before setting mtd_info->owner.  But the memory region is allocated
> by kmalloc, so we can fix it by using kzalloc instead of kmalloc.
> 
> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
> Cc: Jonathan McDowell <noodles@earth.li>
> Cc: David Woodhouse <dwmw2@infradead.org>
> Cc: Brian Norris <computersforpeace@gmail.com>
> Cc: linux-mtd@lists.infradead.org

Pushed to l2-mtd.git. Thanks!

Brian

      reply	other threads:[~2015-01-16  3:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-11 13:07 [PATCH] mtd: nand: ams-delta: fix overwritten mtd_info->owner in initialization Akinobu Mita
2015-01-16  3:33 ` Brian Norris [this message]

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=20150116033347.GE9759@ld-irv-0074 \
    --to=computersforpeace@gmail.com \
    --cc=akinobu.mita@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=noodles@earth.li \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox