]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/privcmd: return -ENOTTY for unimplemented IOCTLs
authorPaul Durrant <paul.durrant@citrix.com>
Mon, 13 Feb 2017 17:03:22 +0000 (17:03 +0000)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 13 Sep 2017 04:37:51 +0000 (21:37 -0700)
commit069a36f2a0d059c3d6ba5469bd7df6a48924a968
treebb830e3cdcf530d6c26955e25b4ea0e8cef7a6b4
parentfa8d9923f3543df53f2b6a715712dbe882a0638e
xen/privcmd: return -ENOTTY for unimplemented IOCTLs

The code sets the default return code to -ENOSYS but then overrides this
to -EINVAL in the switch() statement's default case, which is clearly
silly.

This patch removes the override and sets the default return code to
-ENOTTY, which is the conventional return for an unimplemented ioctl.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
OraBug: 26662731

(cherry picked from commit dc9eab6fd94dd26340749321bba2c58634761516)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
drivers/xen/privcmd.c