From: Jan Kara <jack@suse.cz>
To: Davidlohr Bueso <dave@gnu.org>
Cc: Jan Kara <jack@suse.cz>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/3] quota: return -ENOMEM when memory allocation fails
Date: Thu, 20 Jan 2011 21:30:30 +0100 [thread overview]
Message-ID: <20110120203030.GC19797@quack.suse.cz> (raw)
In-Reply-To: <1295548325.2089.12.camel@offworld>
On Thu 20-01-11 15:32:05, Davidlohr Bueso wrote:
> From: Davidlohr Bueso <dave@gnu.org>
Thanks. Applied.
Honza
> Signed-off-by: Davidlohr Bueso <dave@gnu.org>
> ---
> fs/quota/quota_v2.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/quota/quota_v2.c b/fs/quota/quota_v2.c
> index 65444d2..f1ab360 100644
> --- a/fs/quota/quota_v2.c
> +++ b/fs/quota/quota_v2.c
> @@ -112,7 +112,7 @@ static int v2_read_file_info(struct super_block *sb, int type)
> if (!info->dqi_priv) {
> printk(KERN_WARNING
> "Not enough memory for quota information structure.\n");
> - return -1;
> + return -ENOMEM;
> }
> qinfo = info->dqi_priv;
> if (version == 0) {
> --
> 1.7.1
>
>
>
>
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
prev parent reply other threads:[~2011-01-20 20:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-20 18:32 [PATCH 2/3] quota: return -ENOMEM when memory allocation fails Davidlohr Bueso
2011-01-20 20:30 ` Jan Kara [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=20110120203030.GC19797@quack.suse.cz \
--to=jack@suse.cz \
--cc=dave@gnu.org \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).