]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
quota: correct error number in free_dqentry()
authorZhang Yi <yi.zhang@huawei.com>
Fri, 8 Oct 2021 09:38:21 +0000 (17:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 10:36:03 +0000 (11:36 +0100)
commit2c1a3b29580bd6fc31a0d70ab96ff542d8a5e207
tree0fa0aee3998478e3af0a72d75f2dfdfbce47ccb0
parente5222c87dc441dcc8a66e93cb3fd34dfff03d3ec
quota: correct error number in free_dqentry()

commit d0e36a62bd4c60c09acc40e06ba4831a4d0bc75b upstream.

Fix the error path in free_dqentry(), pass out the error number if the
block to free is not correct.

Fixes: 1ccd14b9c271 ("quota: Split off quota tree handling into a separate file")
Link: https://lore.kernel.org/r/20211008093821.1001186-3-yi.zhang@huawei.com
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Cc: stable@kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/quota/quota_tree.c