s390/dasd: fix return value for non-existent ioctls
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 6 Sep 2012 12:47:30 +0000 (14:47 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 26 Sep 2012 13:45:12 +0000 (15:45 +0200)
For non-existent ioctls -ENOTTY should be returned.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd_ioctl.c

index 654c6921a6d462f5d9fc0f0b82e9813480b96670..8252f37d04ed317b3f39764089187e0c91779c29 100644 (file)
@@ -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