Commit 4ae48c04 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

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: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent ef267938
...@@ -231,7 +231,7 @@ static long vmcp_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ...@@ -231,7 +231,7 @@ static long vmcp_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
return put_user(temp, argp); return put_user(temp, argp);
default: default:
mutex_unlock(&session->mutex); mutex_unlock(&session->mutex);
return -ENOIOCTLCMD; return -ENOTTY;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment