md: fix double free of io_acct_set bioset
authorXiao Ni <xni@redhat.com>
Thu, 12 May 2022 09:21:09 +0000 (17:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:26:32 +0000 (10:26 +0200)
commitf99d5b5dc8a42c807b5f1176b925aa45d61962ab
treee7ee514523d49f4fa3f4381e792ca7904cd41d39
parentb7a51df785031cc49caf1c59766ca89cfa97b54b
md: fix double free of io_acct_set bioset

commit 42b805af102471f53e3c7867b8c2b502ea4eef7e upstream.

Now io_acct_set is alloc and free in personality. Remove the codes that
free io_acct_set in md_free and md_stop.

Fixes: 0c031fd37f69 (md: Move alloc/free acct bioset in to personality)
Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/md.c