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: next-20120911~108^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6b9ad63ad23b669eb8e884c51393652612d6f36a;p=karo-tx-linux.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