]> git.ipfire.org Git - people/arne_f/kernel.git/commit
paride/pcd: cleanup queues when detection fails
authorJens Axboe <axboe@kernel.dk>
Mon, 18 Mar 2019 14:10:32 +0000 (08:10 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Apr 2019 07:16:47 +0000 (09:16 +0200)
commit6e684bd65a5cd88115fa1802664ba90449190cbc
treeed7d6ad3ffb60582763bf495ac22ee8abbc15109
parent77323732005afb86d9e99b4c95993493ec955f8a
paride/pcd: cleanup queues when detection fails

[ Upstream commit 81b74ac68c28fddb3589ad5d4d5e587baf4bb781 ]

The driver allocates queues for all the units it potentially
supports. But if we fail to detect any drives, then we fail
loading the module without cleaning up those queues. This is
now evident with the switch to blk-mq, though the bug has
been there forever as far as I can tell.

Also fix cleanup through regular module exit.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/block/paride/pcd.c