From: Heiko Carstens Date: Thu, 6 Sep 2012 12:47:30 +0000 (+0200) Subject: s390/dasd: fix return value for non-existent ioctls X-Git-Tag: MMI-PSA29.97-13-9~15904^2~30 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2267a0c85c4314b64440b9a1e3442d2eb90a719f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git s390/dasd: fix return value for non-existent ioctls For non-existent ioctls -ENOTTY should be returned. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/block/dasd_ioctl.c b/drivers/s390/block/dasd_ioctl.c index 654c6921a6d4..8252f37d04ed 100644 --- a/drivers/s390/block/dasd_ioctl.c +++ b/drivers/s390/block/dasd_ioctl.c @@ -292,12 +292,12 @@ out: #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