mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
s390/vmlogrdr: change return value from -ENOSYS to -EOPNOTSUPP
Changing the return value of vmlogrdr_open() to -EOPNOTSUPP if O_NONBLOCK is specified shouldn't have any negative side effects. Any existing user wouldn't specify that flag since it wouldn't work anyway. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
a11b2ef7bb
commit
745e967a49
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ static int vmlogrdr_open (struct inode *inode, struct file *filp)
|
|||
* only allow for blocking reads to be open
|
||||
*/
|
||||
if (filp->f_flags & O_NONBLOCK)
|
||||
return -ENOSYS;
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
/* Besure this device hasn't already been opened */
|
||||
spin_lock_bh(&logptr->priv_lock);
|
||||
|
|
Loading…
Reference in a new issue