linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/3] quota: return -ENOMEM when memory allocation fails
@ 2011-01-20 18:32 Davidlohr Bueso
  2011-01-20 20:30 ` Jan Kara
  0 siblings, 1 reply; 2+ messages in thread
From: Davidlohr Bueso @ 2011-01-20 18:32 UTC (permalink / raw)
  To: Jan Kara; +Cc: LKML

From: Davidlohr Bueso <dave@gnu.org>

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





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 2/3] quota: return -ENOMEM when memory allocation fails
  2011-01-20 18:32 [PATCH 2/3] quota: return -ENOMEM when memory allocation fails Davidlohr Bueso
@ 2011-01-20 20:30 ` Jan Kara
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kara @ 2011-01-20 20:30 UTC (permalink / raw)
  To: Davidlohr Bueso; +Cc: Jan Kara, LKML

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-20 20:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).