summaryrefslogtreecommitdiff
path: root/fs/quota
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@gnu.org>2011-01-20 15:32:05 -0300
committerJan Kara <jack@suse.cz>2011-02-24 11:42:44 +0100
commit7a39de1510a3fd07a77530440292735d305fe510 (patch)
treefea245b4e4548823447acc153018baaae27acc39 /fs/quota
parent2aa15890f3c191326678f1bd68af61ec6b8753ec (diff)
quota: return -ENOMEM when memory allocation fails
Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/quota')
-rw-r--r--fs/quota/quota_v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/quota/quota_v2.c b/fs/quota/quota_v2.c
index 65444d29406..f1ab3604db5 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) {