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>
Thu, 18 Nov 2021 18:16:05 +0000 (19:16 +0100)
commit120d9dca7d512ed3d36327fa95ba41747563595b
tree5dd255ae496112997af06df0e33c24d1c2335fa6
parent332db0909293f3f4d853ee2ea695272c75082d87
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