Commit 7a39de1510a3fd07a77530440292735d305fe510

Authored by Davidlohr Bueso
Committed by Jan Kara
1 parent 2aa15890f3

quota: return -ENOMEM when memory allocation fails

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Jan Kara <jack@suse.cz>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -112,7 +112,7 @@
112 112 if (!info->dqi_priv) {
113 113 printk(KERN_WARNING
114 114 "Not enough memory for quota information structure.\n");
115   - return -1;
  115 + return -ENOMEM;
116 116 }
117 117 qinfo = info->dqi_priv;
118 118 if (version == 0) {