diff options
author | Davidlohr Bueso <dave@gnu.org> | 2011-01-20 19:32:05 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2011-02-24 11:42:44 +0100 |
commit | 7a39de1510a3fd07a77530440292735d305fe510 (patch) | |
tree | fea245b4e4548823447acc153018baaae27acc39 /fs/quota | |
parent | mm: prevent concurrent unmap_mapping_range() on the same inode (diff) | |
download | linux-7a39de1510a3fd07a77530440292735d305fe510.tar.xz linux-7a39de1510a3fd07a77530440292735d305fe510.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |