Skip to content

Commit

Permalink
s390/vmcp: return -ENOTTY for unknown ioctl commands
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
heicarst authored and Martin Schwidefsky committed Aug 9, 2017
1 parent ef26793 commit 4ae48c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/char/vmcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 4ae48c0

Please sign in to comment.