Bart Van Assche
030dcf7d1a
pktcdvd: Fix pkt_setup_dev() error path
...
commit 5a0ec388ef upstream.
Commit 523e1d399c ("block: make gendisk hold a reference to its queue")
modified add_disk() and disk_release() but did not update any of the
error paths that trigger a put_disk() call after disk->queue has been
assigned. That introduced the following behavior in the pktcdvd driver
if pkt_new_dev() fails:
Kernel BUG at 00000000e98fd882 [verbose debug info unavailable]
Since disk_release() calls blk_put_queue() anyway if disk->queue != NULL,
fix this by removing the blk_cleanup_queue() call from the pkt_setup_dev()
error path.
Fixes: commit 523e1d399c ("block: make gendisk hold a reference to its queue")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com >
Cc: Tejun Heo <tj@kernel.org >
Cc: Maciej S. Szmigiero <mail@maciej.szmigiero.name >
Signed-off-by: Jens Axboe <axboe@kernel.dk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2018-02-16 20:23:08 +01:00
..
2017-11-02 11:10:55 +01:00
2018-02-03 17:38:59 +01:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:22 +01:00
2018-02-16 20:22:59 +01:00
2017-12-14 09:53:13 +01:00
2018-02-07 11:12:20 -08:00
2018-01-17 09:45:27 +01:00
2017-11-02 11:10:55 +01:00
2018-02-16 20:23:08 +01:00
2018-02-16 20:23:06 +01:00
2018-01-10 09:31:19 +01:00
2017-11-02 11:10:55 +01:00
2018-02-16 20:23:06 +01:00
2017-12-29 17:53:48 +01:00
2017-12-10 13:40:41 +01:00
2018-02-16 20:22:43 +01:00
2017-12-25 14:26:30 +01:00
2018-02-16 20:23:02 +01:00
2017-12-20 10:10:34 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-16 20:22:43 +01:00
2017-12-10 13:40:44 +01:00
2018-02-16 20:23:07 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-16 20:22:56 +01:00
2017-11-02 11:10:55 +01:00
2018-02-07 11:12:26 -08:00
2017-08-28 17:15:16 +02:00
2018-02-03 17:38:52 +01:00
2018-02-16 20:22:45 +01:00
2018-02-16 20:23:06 +01:00
2017-11-02 11:10:55 +01:00
2017-12-25 14:26:20 +01:00
2018-02-03 17:39:09 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:07 +01:00
2017-12-17 15:08:00 +01:00
2017-11-04 15:01:50 +01:00
2018-02-07 11:12:20 -08:00
2018-01-31 14:03:46 +01:00
2018-02-03 17:39:24 +01:00
2018-01-10 09:31:21 +01:00
2017-12-14 09:53:05 +01:00
2017-11-02 11:10:55 +01:00
2017-12-25 14:26:27 +01:00
2017-12-20 10:10:38 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:53:12 +01:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:01 +01:00
2018-02-16 20:23:05 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-29 17:53:46 +01:00
2018-02-03 17:39:22 +01:00
2018-01-23 19:58:13 +01:00
2018-02-16 20:22:57 +01:00
2018-01-17 09:45:27 +01:00
2018-02-13 10:19:48 +01:00
2017-11-02 11:10:55 +01:00
2017-08-01 13:31:44 -04:00
2017-11-02 11:10:55 +01:00
2017-12-29 17:53:49 +01:00
2018-02-03 17:39:10 +01:00
2017-11-02 11:10:55 +01:00
2018-02-13 10:19:46 +01:00
2017-11-02 11:10:55 +01:00
2017-12-29 17:53:47 +01:00
2017-11-02 11:10:55 +01:00
2017-12-29 17:53:47 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-23 19:58:16 +01:00
2018-02-16 20:23:08 +01:00
2018-01-17 09:45:18 +01:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:38:51 +01:00
2017-09-08 18:26:51 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:53:08 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 10:04:46 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-20 10:10:29 +01:00
2018-01-05 15:48:59 +01:00
2018-02-03 17:38:59 +01:00
2017-11-02 11:10:55 +01:00
2018-02-13 10:19:49 +01:00
2017-07-20 11:37:58 +02:00
2017-11-02 11:10:55 +01:00
2017-12-20 10:10:34 +01:00
2018-02-03 17:39:23 +01:00
2017-08-28 13:52:22 +02:00
2017-11-02 11:10:55 +01:00
2018-02-16 20:23:00 +01:00
2018-01-02 20:31:05 +01:00
2017-12-25 14:26:24 +01:00
2017-12-25 14:26:31 +01:00
2017-12-20 10:10:24 +01:00
2018-02-07 11:12:26 -08:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:21 +01:00
2017-11-02 11:10:55 +01:00
2017-12-25 14:26:29 +01:00
2018-02-13 10:19:47 +01:00
2017-12-25 14:26:24 +01:00
2017-08-29 08:52:51 -05:00
2017-12-14 09:52:48 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-16 20:23:04 +01:00
2017-11-02 10:04:46 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00