summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorZhangXiaoxu <zhangxiaoxu5@huawei.com>2019-08-19 11:31:21 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-29 08:30:25 +0200
commit23c9e199076aeda42e2657635daea30f22f6663b (patch)
tree4ac11f42bb7568e8a3ae4799e077a106e844b928 /drivers
parentf57bbd7c789468dda655d0b652c06c961eeb510b (diff)
downloadlinux-stable-23c9e199076aeda42e2657635daea30f22f6663b.tar.gz
linux-stable-23c9e199076aeda42e2657635daea30f22f6663b.tar.bz2
linux-stable-23c9e199076aeda42e2657635daea30f22f6663b.zip
dm space map metadata: fix missing store of apply_bops() return value
commit ae148243d3f0816b37477106c05a2ec7d5f32614 upstream. In commit 6096d91af0b6 ("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: 6096d91af0b6 ("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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/persistent-data/dm-space-map-metadata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/persistent-data/dm-space-map-metadata.c b/drivers/md/persistent-data/dm-space-map-metadata.c
index aec449243966..25328582cc48 100644
--- a/drivers/md/persistent-data/dm-space-map-metadata.c
+++ b/drivers/md/persistent-data/dm-space-map-metadata.c
@@ -249,7 +249,7 @@ static int out(struct sm_metadata *smm)
}
if (smm->recursion_count == 1)
- apply_bops(smm);
+ r = apply_bops(smm);
smm->recursion_count--;