Ver código fonte

quota: return -ENOMEM when memory allocation fails

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Davidlohr Bueso 14 anos atrás
pai
commit
7a39de1510
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      fs/quota/quota_v2.c

+ 1 - 1
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) {
 	if (!info->dqi_priv) {
 		printk(KERN_WARNING
 		printk(KERN_WARNING
 		       "Not enough memory for quota information structure.\n");
 		       "Not enough memory for quota information structure.\n");
-		return -1;
+		return -ENOMEM;
 	}
 	}
 	qinfo = info->dqi_priv;
 	qinfo = info->dqi_priv;
 	if (version == 0) {
 	if (version == 0) {