diff options
| author | Anant Thazhemadam <[email protected]> | 2020-12-09 01:13:38 +0530 |
|---|---|---|
| committer | Jan Kara <[email protected]> | 2020-12-09 10:07:10 +0100 |
| commit | e51d68e76d604c6d5d1eb13ae1d6da7f6c8c0dfc (patch) | |
| tree | 8d3c159148dcecc3d40220974f586b3f82e8d4b0 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | d24396c5290ba8ab04ba505176874c4e04a2d53c (diff) | |
fs: quota: fix array-index-out-of-bounds bug by passing correct argument to vfs_cleanup_quota_inode()
When dquot_resume() was last updated, the argument that got passed
to vfs_cleanup_quota_inode was incorrectly set.
If type = -1 and dquot_load_quota_sb() returns a negative value,
then vfs_cleanup_quota_inode() gets called with -1 passed as an
argument, and this leads to an array-index-out-of-bounds bug.
Fix this issue by correctly passing the arguments.
Fixes: ae45f07d47cc ("quota: Simplify dquot_resume()")
Link: https://lore.kernel.org/r/[email protected]
Reported-by: [email protected]
Tested-by: [email protected]
CC: [email protected]
Signed-off-by: Anant Thazhemadam <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions