]> git.baikalelectronics.ru Git - kernel.git/commit
compat_ioctl: move CDROM_SEND_PACKET handling into scsi
authorArnd Bergmann <arnd@arndb.de>
Thu, 28 Nov 2019 12:44:48 +0000 (13:44 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 3 Jan 2020 08:33:05 +0000 (09:33 +0100)
commit1af8fa9c131f348475aca92431460a2eef493619
treebc0a22af353b3359a300b426464d6cecc3fab52a
parent906cde3d6d55e600ddb801f55b4a5162481eb6a5
compat_ioctl: move CDROM_SEND_PACKET handling into scsi

There is only one implementation of this ioctl, so move the handling out
of the common block layer code into the place where it's actually needed.

It also gets called indirectly through pktcdvd, which needs to be aware
of this change.

As I noticed, the old implementation of the compat handler failed to
convert the structure on the way out, so the updated fields never got
written back to user space. This is either not important, or it has
never worked and should be fixed now.

Reviewed-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
block/compat_ioctl.c
block/scsi_ioctl.c
drivers/block/pktcdvd.c