aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/sr.c')
-rw-r--r--drivers/scsi/sr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c
index 27f5bfd1def3..8dbe3798d5fd 100644
--- a/drivers/scsi/sr.c
+++ b/drivers/scsi/sr.c
@@ -878,7 +878,7 @@ static void sr_kref_release(struct kref *kref)
878 struct gendisk *disk = cd->disk; 878 struct gendisk *disk = cd->disk;
879 879
880 spin_lock(&sr_index_lock); 880 spin_lock(&sr_index_lock);
881 clear_bit(disk->first_minor, sr_index_bits); 881 clear_bit(MINOR(disk_devt(disk)), sr_index_bits);
882 spin_unlock(&sr_index_lock); 882 spin_unlock(&sr_index_lock);
883 883
884 unregister_cdrom(&cd->cdi); 884 unregister_cdrom(&cd->cdi);