Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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