diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/sr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index 9e267c6d3a43..3067e5a7b75e 100644 --- a/drivers/scsi/sr.c +++ b/drivers/scsi/sr.c | |||
@@ -456,7 +456,7 @@ queue: | |||
456 | static int sr_block_open(struct inode *inode, struct file *file) | 456 | static int sr_block_open(struct inode *inode, struct file *file) |
457 | { | 457 | { |
458 | struct gendisk *disk = inode->i_bdev->bd_disk; | 458 | struct gendisk *disk = inode->i_bdev->bd_disk; |
459 | struct scsi_cd *cd = scsi_cd(inode->i_bdev->bd_disk); | 459 | struct scsi_cd *cd; |
460 | int ret = 0; | 460 | int ret = 0; |
461 | 461 | ||
462 | if(!(cd = scsi_cd_get(disk))) | 462 | if(!(cd = scsi_cd_get(disk))) |