]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
scsi: sd: enable compat ioctls for sed-opal
authorArnd Bergmann <arnd@arndb.de>
Fri, 15 Mar 2019 12:46:11 +0000 (13:46 +0100)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 30 Jan 2020 15:25:03 +0000 (16:25 +0100)
commitc7b49234c47cbfdef943f5609df73ad255c67701
treec843a7bfc81a92355e5d01ca999f0dce51f0304d
parentdc20d93798378310989d9e3b26ccac257df2f3aa
scsi: sd: enable compat ioctls for sed-opal

BugLink: https://bugs.launchpad.net/bugs/1861085
commit 142b2ac82e31c174936c5719fa12ae28f51a55b7 upstream.

The sed_ioctl() function is written to be compatible between
32-bit and 64-bit processes, however compat mode is only
wired up for nvme, not for sd.

Add the missing call to sed_ioctl() in sd_compat_ioctl().

Fixes: d80210f25ff0 ("sd: add support for TCG OPAL self encrypting disks")
Cc: linux-scsi@vger.kernel.org
Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/scsi/sd.c