Browse Source

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>
Heiko Carstens 8 years ago
parent
commit
4ae48c0468
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/s390/char/vmcp.c

+ 1 - 1
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;
 	}
 }