From: Artem Bityutskiy <dedekind1@gmail.com>
To: Xiaochen Wang <wangxiaochen0@gmail.com>
Cc: linux-mtd@lists.infradead.org, dwmw2@infradead.org
Subject: Re: [PATCH] check kmalloc return value in mtd/sm_rtl.c
Date: Fri, 11 Mar 2011 10:44:05 +0200 [thread overview]
Message-ID: <1299833045.2732.6.camel@localhost> (raw)
In-Reply-To: <20110310143139.GA15778@chii>
On Thu, 2011-03-10 at 22:31 +0800, Xiaochen Wang wrote:
> Hi, Artem
> > > + if (!attributes)
> > > + got error3;
> I'm so sorry for that:(
> > Please, compile-check patches before sending them out :-)
> Thanks for your advice, I'll do it.
>
> The new patch , which has been compile-checked, is here:
>
> Description:
> Because malloc/kzalloc may fail, we should check kmalloc/kzalloc return value
> in sm_create_sysfs_attributes(), mtd/sm_rtl.c and do error handling.
> Meanwhile, we should check sm_create_sysfs_attributes return value.
>
> Signed-off-by: Xiaochen Wang <wangxiaochen0@gmail.com>
Pushed to l2-mtd-2.6.git, thanks.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
prev parent reply other threads:[~2011-03-11 8:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-10 5:42 [PATCH] check kmalloc return value in mtd/sm_rtl.c Xiaochen Wang
2011-03-10 13:21 ` Artem Bityutskiy
2011-03-10 14:31 ` Xiaochen Wang
2011-03-11 8:44 ` Artem Bityutskiy [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=1299833045.2732.6.camel@localhost \
--to=dedekind1@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=wangxiaochen0@gmail.com \
/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