summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2017-08-07 15:16:16 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2017-08-09 09:09:37 -0400
commit4ae48c046814d8b0386883aeb9060b08f46a2ec1 (patch)
treea37b9e140188da3308b62da8994b8a39b529cd1a
parentef267938f07197fc011e3aada67ac70a3c65c2ff (diff)
downloadlinux-4ae48c046814d8b0386883aeb9060b08f46a2ec1.tar.bz2
s390/vmcp: return -ENOTTY for unknown ioctl commands
Return -ENOTTY for unknown ioctl commands instead of -ENOIOCTLCMD. This isn't that much of difference, since common code will translate -ENOIOCTLCMD to -ENOTTY anyway, but this way it seems to be more obvious what is happening (at least to me). Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r--drivers/s390/char/vmcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/vmcp.c b/drivers/s390/char/vmcp.c
index 18b30119a70e..30fd474c86b3 100644
--- a/drivers/s390/char/vmcp.c
+++ b/drivers/s390/char/vmcp.c
@@ -231,7 +231,7 @@ static long vmcp_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
return put_user(temp, argp);
default:
mutex_unlock(&session->mutex);
- return -ENOIOCTLCMD;
+ return -ENOTTY;
}
}