s390/vmlogrdr: change return value from -ENOSYS to -EOPNOTSUPP
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 6 Sep 2012 15:35:00 +0000 (17:35 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 26 Sep 2012 13:45:16 +0000 (15:45 +0200)
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>
drivers/s390/char/vmlogrdr.c

index c131bc40f96268a7a9163681a579a3a0a843dede..9b3a24e8d3a0e0dfec9ffcbf1757ddd37f66329e 100644 (file)
@@ -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);