Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Heiko Carstens and committed by
Martin Schwidefsky
745e967a a11b2ef7

+1 -1
+1 -1
drivers/s390/char/vmlogrdr.c
··· 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);