commit | 7a39de1510a3fd07a77530440292735d305fe510 | [log] [tgz] |
---|---|---|
author | Davidlohr Bueso <dave@gnu.org> | Thu Jan 20 15:32:05 2011 -0300 |
committer | Jan Kara <jack@suse.cz> | Thu Feb 24 11:42:44 2011 +0100 |
tree | fea245b4e4548823447acc153018baaae27acc39 | |
parent | 2aa15890f3c191326678f1bd68af61ec6b8753ec [diff] [blame] |
quota: return -ENOMEM when memory allocation fails Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Jan Kara <jack@suse.cz>
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 @@ 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) {