compat_ioctl, cdrom: Replace .ioctl with .compat_ioctl in four appropriate places
Subsystems (3)
PATCH 1/1 compat_ioctl, cdrom: Replace .ioctl with .compat_ioctl in four appropriate places
From: Adam Williamson <[email protected]>
Arnd Bergmann inadvertently typoed these in d320a9551e394 and 64cbfa96551a; they seem to be the cause of
https://bugzilla.redhat.com/show_bug.cgi?id=1801353 , invalid SCSI commands when udev tries to query a DVD drive.
[arnd] Found another instance of the same bug, also introduced in my compat_ioctl series.
--- drivers/block/paride/pcd.c | 2 +- drivers/cdrom/gdrom.c | 2 +- drivers/ide/ide-gd.c | 2 +- drivers/scsi/sr.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
drivers/block/paride/pcd.c +1 -1
@@ -276,7 +276,7 @@ static const struct block_device_operations pcd_bdops = { .release = pcd_block_release, .ioctl = pcd_block_ioctl, #ifdef CONFIG_COMPAT - .ioctl = blkdev_compat_ptr_ioctl, + .compat_ioctl = blkdev_compat_ptr_ioctl, #endif .check_events = pcd_block_check_events, };
drivers/cdrom/gdrom.c +1 -1
@@ -519,7 +519,7 @@ static const struct block_device_operations gdrom_bdops = { .check_events = gdrom_bdops_check_events, .ioctl = gdrom_bdops_ioctl, #ifdef CONFIG_COMPAT - .ioctl = blkdev_compat_ptr_ioctl, + .compat_ioctl = blkdev_compat_ptr_ioctl,#endif };
drivers/ide/ide-gd.c +1 -1
@@ -361,7 +361,7 @@ static const struct block_device_operations ide_gd_ops = { .release = ide_gd_release, .ioctl = ide_gd_ioctl, #ifdef CONFIG_COMPAT - .ioctl = ide_gd_compat_ioctl, + .compat_ioctl = ide_gd_compat_ioctl, #endif .getgeo = ide_gd_getgeo, .check_events = ide_gd_check_events,
drivers/scsi/sr.c +1 -1
@@ -688,7 +688,7 @@ static const struct block_device_operations sr_bdops = .release = sr_block_release, .ioctl = sr_block_ioctl, #ifdef CONFIG_COMPAT - .ioctl = sr_block_compat_ioctl, + .compat_ioctl = sr_block_compat_ioctl, #endif .check_events = sr_block_check_events, .revalidate_disk = sr_block_revalidate_disk,
Signature · 1 line
2.25.0
Martin K. Petersen
AppliedArnd,
Quoted 4 lines
Arnd Bergmann inadvertently typoed these in
d320a9551e394and64cbfa96551a; they seem to be the cause of
https://bugzilla.redhat.com/show_bug.cgi?id=1801353 , invalid SCSI commands when udev tries to query a DVD drive.
Applied to 5.6/scsi-fixes. Thanks!
Jens, I hope that's OK? I keep getting mail about this bug.
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Jens Axboe
maintainerQuoted 11 lines · Martin K. Petersen
Arnd,
Quoted 4 lines
Arnd Bergmann inadvertently typoed these in
d320a9551e394and64cbfa96551a; they seem to be the cause of
https://bugzilla.redhat.com/show_bug.cgi?id=1801353 , invalid SCSI commands when udev tries to query a DVD drive.Applied to 5.6/scsi-fixes. Thanks!
Jens, I hope that's OK? I keep getting mail about this bug.
Yeah that's fine, thanks for picking this up.
Signature · 1 line
Jens Axboe