diff options
| author | Jan Kara <[email protected]> | 2017-03-08 16:48:33 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2017-03-08 17:55:17 +0000 |
| commit | 90f16fddcc2802726142b8386c65ccb89f044613 (patch) | |
| tree | da1c8d56ab62dd362dc94fab542ba43a5144f67d /scripts/gcc-plugins/sancov_plugin.c | |
| parent | bdi: Fix use-after-free in wb_congested_put() (diff) | |
| download | kernel-90f16fddcc2802726142b8386c65ccb89f044613.tar.gz kernel-90f16fddcc2802726142b8386c65ccb89f044613.zip | |
block: Make del_gendisk() safer for disks without queues
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 <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Tested-by: Omar Sandoval <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions
