]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Mon, 13 Feb 2017 18:49:00 +0000 (13:49 -0500)
commitdc9eab6fd94dd26340749321bba2c58634761516
treef8c05ab25635c57dc168172b4307f7ae0bab7fe9
parentfd8aa9095a95c02dcc35540a263267c29b8fda9d
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>
drivers/xen/privcmd.c