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: v3.7-rc1~179^2~30 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2267a0c85c4314b64440b9a1e3442d2eb90a719f;p=users%2Fjedix%2Flinux-maple.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 654c6921a6d46..8252f37d04ed3 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