diff options
author | Jan Kara <jack@suse.cz> | 2014-10-22 09:06:49 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-14 08:48:00 -0800 |
commit | 33d90ee4d0318fb1ec5bba6a8b9f4fa2d5333d3c (patch) | |
tree | 37de27c33a24ad9235666ca0d7850b0846253089 /fs | |
parent | b57203e1fdfb7fa7e7b00d777fb6c83d73f8ce36 (diff) | |
download | linux-3.10-33d90ee4d0318fb1ec5bba6a8b9f4fa2d5333d3c.tar.gz linux-3.10-33d90ee4d0318fb1ec5bba6a8b9f4fa2d5333d3c.tar.bz2 linux-3.10-33d90ee4d0318fb1ec5bba6a8b9f4fa2d5333d3c.zip |
quota: Properly return errors from dquot_writeback_dquots()
commit 474d2605d119479e5aa050f738632e63589d4bb5 upstream.
Due to a switched left and right side of an assignment,
dquot_writeback_dquots() never returned error. This could result in
errors during quota writeback to not be reported to userspace properly.
Fix it.
Coverity-id: 1226884
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/quota/dquot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index 38802d68396..7a10e047bc3 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c @@ -637,7 +637,7 @@ int dquot_writeback_dquots(struct super_block *sb, int type) dqstats_inc(DQST_LOOKUPS); err = sb->dq_op->write_dquot(dquot); if (!ret && err) - err = ret; + ret = err; dqput(dquot); spin_lock(&dq_list_lock); } |