]> git.baikalelectronics.ru Git - 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)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Mar 2019 14:10:32 +0000 (08:10 -0600)
commitb579d33638191efa7d7c43d32539e0edb3d0fd73
tree79c66628783124bbb51cd4815801080f0fffaa09
parent8dbdaf109ee3ad77cc0ec0730b69b5b2a5515351
paride/pcd: cleanup queues when detection fails

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>
drivers/block/paride/pcd.c