On Wed, Mar 08, 2017 at 05:48:33PM +0100, Jan Kara wrote: > Commit 165a5e22fafb "block: Move bdi_unregister() to del_gendisk()" > added disk->queue dereference to del_gendisk(). Although del_gendisk() > is not supposed to be called without disk->queue valid and > blk_unregister_queue() warns in that case, this change will make it oops > instead. Return to the old more robust behavior of just warning when > del_gendisk() gets called for gendisk with disk->queue being NULL. > > Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > Signed-off-by: Jan Kara <jack@xxxxxxx> Acked-by: Tejun Heo <tj@xxxxxxxxxx> Thanks. -- tejun