]> git.baikalelectronics.ru Git - kernel.git/commit
dm space map metadata: fix missing store of apply_bops() return value
authorZhangXiaoxu <zhangxiaoxu5@huawei.com>
Mon, 19 Aug 2019 03:31:21 +0000 (11:31 +0800)
committerMike Snitzer <snitzer@redhat.com>
Thu, 22 Aug 2019 20:11:24 +0000 (16:11 -0400)
commit25b7711be66e289f0f7c9af315d831b2823a51c9
treeff7287f6d90e4ebb7a8c18273e0f78647ba9a3c1
parentb262d59ffe0e395fb655f337dfb61725be2f9a34
dm space map metadata: fix missing store of apply_bops() return value

In commit 0a16d460d1a8 ("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: 0a16d460d1a8 ("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>
drivers/md/persistent-data/dm-space-map-metadata.c