null_blk: fix memory leak on cleanup
authorMatias Bjørling <mb@lightnvm.io>
Mon, 31 Aug 2015 12:17:18 +0000 (14:17 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 2 Sep 2015 22:49:41 +0000 (16:49 -0600)
commitde65d2d26f81f7f84c7258b3a137f20e8fa5bb6a
tree7a19b0d7c08f2e5cb056a95d591800b96d801681
parent5014c311baa2b21384321fa4a9f617a92e3e56f0
null_blk: fix memory leak on cleanup

Driver was not freeing the memory allocated for internal nullb queues.
This patch frees the memory during driver unload.

Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/null_blk.c