quota: return -ENOMEM when memory allocation fails

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
Davidlohr Bueso 2011-01-20 15:32:05 -03:00 committed by Jan Kara
parent 2aa15890f3
commit 7a39de1510

View File

@ -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) {