Commit 745e967a49b26725cc9f30105ff67c8fee8926d6

Authored by Heiko Carstens
Committed by Martin Schwidefsky
1 parent a11b2ef7bb

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/s390/char/vmlogrdr.c
... ... @@ -321,7 +321,7 @@
321 321 * only allow for blocking reads to be open
322 322 */
323 323 if (filp->f_flags & O_NONBLOCK)
324   - return -ENOSYS;
  324 + return -EOPNOTSUPP;
325 325  
326 326 /* Besure this device hasn't already been opened */
327 327 spin_lock_bh(&logptr->priv_lock);