aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/block
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2012-09-06 08:47:30 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2012-09-26 09:45:12 -0400
commit2267a0c85c4314b64440b9a1e3442d2eb90a719f (patch)
tree0e75d6df4ca328c6ae7dc8d976b13956803ee0e9 /drivers/s390/block
parentcaf757c609445b01ad845df160369d8ccfd97d5b (diff)
s390/dasd: fix return value for non-existent ioctls
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>
Diffstat (limited to 'drivers/s390/block')
-rw-r--r--drivers/s390/block/dasd_ioctl.c4
1 files changed, 2 insertions, 2 deletions
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:
292#else 292#else
293static int dasd_ioctl_reset_profile(struct dasd_block *block) 293static int dasd_ioctl_reset_profile(struct dasd_block *block)
294{ 294{
295 return -ENOSYS; 295 return -ENOTTY;
296} 296}
297 297
298static int dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp) 298static int dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp)
299{ 299{
300 return -ENOSYS; 300 return -ENOTTY;
301} 301}
302#endif 302#endif
303 303