mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[PATCH] s390: BIODASDPRRD ioctl return code
The IOCTL BIODASDPRRD had no return code for 'profiling is inactive' and therefore tunedasd wrote misleading message for request-counter = 0. Introduce return-code EIO for inactive profiling. Signed-off-by: Horst Hummel <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
cfb1b55595
commit
9a7af28966
1 changed files with 4 additions and 1 deletions
|
|
@ -7,7 +7,7 @@
|
|||
* Bugreports.to..: <Linux390@de.ibm.com>
|
||||
* (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999-2001
|
||||
*
|
||||
* $Revision: 1.47 $
|
||||
* $Revision: 1.50 $
|
||||
*
|
||||
* i/o controls for the dasd driver.
|
||||
*/
|
||||
|
|
@ -352,6 +352,9 @@ dasd_ioctl_read_profile(struct block_device *bdev, int no, long args)
|
|||
if (device == NULL)
|
||||
return -ENODEV;
|
||||
|
||||
if (dasd_profile_level == DASD_PROFILE_OFF)
|
||||
return -EIO;
|
||||
|
||||
if (copy_to_user((long __user *) args, (long *) &device->profile,
|
||||
sizeof (struct dasd_profile_info_t)))
|
||||
return -EFAULT;
|
||||
|
|
|
|||
Loading…
Reference in a new issue