projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2aa1589
)
quota: return -ENOMEM when memory allocation fails
author
Davidlohr Bueso
<dave@gnu.org>
Thu, 20 Jan 2011 18:32:05 +0000
(15:32 -0300)
committer
Jan Kara
<jack@suse.cz>
Thu, 24 Feb 2011 10:42:44 +0000
(11:42 +0100)
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/quota_v2.c
patch
|
blob
|
history
diff --git
a/fs/quota/quota_v2.c
b/fs/quota/quota_v2.c
index 65444d29406bf3c782b2741dc25f9dd571691096..f1ab3604db5a4972d427b64d762df9c02a47f9de 100644
(file)
--- 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) {