MD: Memory leak when flush bio size is zero
authorXiao Ni <xni@redhat.com>
Sat, 20 Oct 2018 00:09:25 +0000 (08:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:08:31 +0000 (11:08 -0800)
commitfbf975efbfbf6b99a559f971d8be5710904a30bb
tree7ba8a78dc930d73e3c1e5ec947bf489343f5d784
parent64c90d9c15e54f1bddad973bb58c30c18587ca67
MD: Memory leak when flush bio size is zero

[ Upstream commit af9b926de9c5986ab009e64917de87c9758bab10 ]

flush_pool is leaked when flush bio size is zero

Fixes: 5a409b4f56d5 ("MD: fix lock contention for flush bios")
Signed-off-by: David Jeffery <djeffery@redhat.com>
Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/md.c