diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/pktcdvd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index bdd49abcb546..a0ba4023953b 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c | |||
@@ -2819,8 +2819,8 @@ static int pkt_ioctl(struct inode *inode, struct file *file, unsigned int cmd, u | |||
2819 | case CDROM_LAST_WRITTEN: | 2819 | case CDROM_LAST_WRITTEN: |
2820 | case CDROM_SEND_PACKET: | 2820 | case CDROM_SEND_PACKET: |
2821 | case SCSI_IOCTL_SEND_COMMAND: | 2821 | case SCSI_IOCTL_SEND_COMMAND: |
2822 | return blkdev_driver_ioctl(pd->bdev->bd_inode, pd->bdev->bd_disk, | 2822 | return __blkdev_driver_ioctl(pd->bdev, file ? file->f_mode : 0, |
2823 | file, cmd, arg); | 2823 | cmd, arg); |
2824 | 2824 | ||
2825 | default: | 2825 | default: |
2826 | VPRINTK(DRIVER_NAME": Unknown ioctl for %s (%x)\n", pd->name, cmd); | 2826 | VPRINTK(DRIVER_NAME": Unknown ioctl for %s (%x)\n", pd->name, cmd); |