diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2012-09-06 08:47:30 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-09-26 09:45:12 -0400 |
commit | 2267a0c85c4314b64440b9a1e3442d2eb90a719f (patch) | |
tree | 0e75d6df4ca328c6ae7dc8d976b13956803ee0e9 /drivers/s390/block | |
parent | caf757c609445b01ad845df160369d8ccfd97d5b (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.c | 4 |
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 |
293 | static int dasd_ioctl_reset_profile(struct dasd_block *block) | 293 | static int dasd_ioctl_reset_profile(struct dasd_block *block) |
294 | { | 294 | { |
295 | return -ENOSYS; | 295 | return -ENOTTY; |
296 | } | 296 | } |
297 | 297 | ||
298 | static int dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp) | 298 | static 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 | ||