Commit 2267a0c8 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

s390/dasd: fix return value for non-existent ioctls

For non-existent ioctls -ENOTTY should be returned.
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent caf757c6
......@@ -292,12 +292,12 @@ static int dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp)
#else
static int dasd_ioctl_reset_profile(struct dasd_block *block)
{
return -ENOSYS;
return -ENOTTY;
}
static int dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp)
{
return -ENOSYS;
return -ENOTTY;
}
#endif
......
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