[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110120203030.GC19797@quack.suse.cz>
Date: Thu, 20 Jan 2011 21:30:30 +0100
From: Jan Kara <jack@...e.cz>
To: Davidlohr Bueso <dave@....org>
Cc: Jan Kara <jack@...e.cz>, LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2/3] quota: return -ENOMEM when memory allocation fails
On Thu 20-01-11 15:32:05, Davidlohr Bueso wrote:
> From: Davidlohr Bueso <dave@....org>
Thanks. Applied.
Honza
> Signed-off-by: Davidlohr Bueso <dave@....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@...e.cz>
SUSE Labs, CR
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists