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: Thu, 10 Mar 2011 15:21:38 +0200 [thread overview]
Message-ID: <1299763298.6676.12.camel@localhost> (raw)
In-Reply-To: <20110310054230.GA6022@chii>
Hi,
On Thu, 2011-03-10 at 13:42 +0800, Xiaochen Wang wrote:
> @@ -83,12 +87,24 @@ struct attribute_group *sm_create_sysfs_attributes(struct sm_ftl *ftl)
> /* Create array of pointers to the attributes */
> attributes = kzalloc(sizeof(struct attribute *) * (NUM_ATTRIBUTES + 1),
> GFP_KERNEL);
> + if (!attributes)
> + got error3;
Please, compile-check patches before sending them out :-)
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
next prev parent reply other threads:[~2011-03-10 13:23 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 [this message]
2011-03-10 14:31 ` Xiaochen Wang
2011-03-11 8:44 ` Artem Bityutskiy
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=1299763298.6676.12.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