From: Davidlohr Bueso Date: Thu, 20 Jan 2011 18:32:05 +0000 (-0300) Subject: quota: return -ENOMEM when memory allocation fails X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7a39de1510a3fd07a77530440292735d305fe510;p=linux-beck.git quota: return -ENOMEM when memory allocation fails Signed-off-by: Davidlohr Bueso Signed-off-by: Jan Kara --- diff --git a/fs/quota/quota_v2.c b/fs/quota/quota_v2.c index 65444d29406b..f1ab3604db5a 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) {