projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] fix races and leaks in vfs_quota_on() users
[cascardo/linux.git]
/
fs
/
ext3
/
super.c
diff --git
a/fs/ext3/super.c
b/fs/ext3/super.c
index
8ddced3
..
f38a5af
100644
(file)
--- a/
fs/ext3/super.c
+++ b/
fs/ext3/super.c
@@
-2810,8
+2810,9
@@
static int ext3_quota_on(struct super_block *sb, int type, int format_id,
journal_unlock_updates(EXT3_SB(sb)->s_journal);
}
journal_unlock_updates(EXT3_SB(sb)->s_journal);
}
+ err = vfs_quota_on_path(sb, type, format_id, &nd.path);
path_put(&nd.path);
path_put(&nd.path);
- return
vfs_quota_on(sb, type, format_id, path, remount)
;
+ return
err
;
}
/* Read data from quotafile - avoid pagecache and such because we cannot afford
}
/* Read data from quotafile - avoid pagecache and such because we cannot afford