OSDN Git Service

compat_ioctl: cdrom: handle CDROM_LAST_WRITTEN
authorArnd Bergmann <arnd@arndb.de>
Mon, 9 Dec 2019 15:33:16 +0000 (16:33 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 3 Jan 2020 08:33:11 +0000 (09:33 +0100)
commitab8bc5417d8cf62a5fc515737b391689573e7fb3
tree4101c5e66210bb085e2deae013e12998d7f370e0
parent8f8f562038c188046d683e2b650f7731739869dd
compat_ioctl: cdrom: handle CDROM_LAST_WRITTEN

This is the only ioctl command that does not have a proper
compat handler. Making the normal implementation do the
right thing is actually very simply, so just do that by
using an in_compat_syscall() check to avoid the special
case in the pkcdvd driver.

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