projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dfbd13
)
pcd: fix ordering of unregister_cdrom()
author
Luis Chamberlain
<mcgrof@kernel.org>
Mon, 27 Sep 2021 22:01:08 +0000
(15:01 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 18 Oct 2021 20:41:36 +0000
(14:41 -0600)
We first register cdrom and then we add_disk() and
so we we should likewise unregister the cdrom first and
then del_gendisk().
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/paride/pcd.c
patch
|
blob
|
history
diff --git
a/drivers/block/paride/pcd.c
b/drivers/block/paride/pcd.c
index a7fab3830d7b501afc1dc72b4f8b1da96fe93fea..82a654fc4db819abe7567165f234ea9cf431242f 100644
(file)
--- a/
drivers/block/paride/pcd.c
+++ b/
drivers/block/paride/pcd.c
@@
-1021,9
+1021,9
@@
static void __exit pcd_exit(void)
if (!cd->present)
continue;
+ unregister_cdrom(&cd->info);
del_gendisk(cd->disk);
pi_release(cd->pi);
- unregister_cdrom(&cd->info);
blk_cleanup_disk(cd->disk);
blk_mq_free_tag_set(&cd->tag_set);