]> git.baikalelectronics.ru Git - kernel.git/commit
paride/pf: cleanup queues when detection fails
authorJens Axboe <axboe@kernel.dk>
Mon, 18 Mar 2019 14:08:43 +0000 (08:08 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Mar 2019 14:08:43 +0000 (08:08 -0600)
commit967980a65ef1315d7d5906573894186b5bcf7885
tree05822c7af83a5e388722c9d448ba303285b3927e
parente34ba0d7c8ee128a8a7cc0a1d0345206aeb6a4e5
paride/pf: 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/pf.c