Merge branch 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / drivers / cdrom / gdrom.c
index 6495b03f576ca1a5867b000e210cf2d803fa18d4..ae3a7537cf0fbce1f85d76446f3f2ca2087b151a 100644 (file)
@@ -497,6 +497,9 @@ static const struct cdrom_device_ops gdrom_ops = {
 static int gdrom_bdops_open(struct block_device *bdev, fmode_t mode)
 {
        int ret;
+
+       check_disk_change(bdev);
+
        mutex_lock(&gdrom_mutex);
        ret = cdrom_open(gd.cd_info, bdev, mode);
        mutex_unlock(&gdrom_mutex);