mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 10:12:16 +09:00
dm space map metadata: fix missing store of apply_bops() return value
commitae148243d3upstream. In commit6096d91af0("dm space map metadata: fix occasional leak of a metadata block on resize"), we refactor the commit logic to a new function 'apply_bops'. But when that logic was replaced in out() the return value was not stored. This may lead out() returning a wrong value to the caller. Fixes:6096d91af0("dm space map metadata: fix occasional leak of a metadata block on resize") Cc: stable@vger.kernel.org Signed-off-by: ZhangXiaoxu <zhangxiaoxu5@huawei.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
09f142a859
commit
013d13ae72
@@ -248,7 +248,7 @@ static int out(struct sm_metadata *smm)
|
||||
}
|
||||
|
||||
if (smm->recursion_count == 1)
|
||||
apply_bops(smm);
|
||||
r = apply_bops(smm);
|
||||
|
||||
smm->recursion_count--;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user