]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/tty/n_r3964.c
drm/i915/execlists: Refactor -EIO markup of hung requests
[linux.git] / drivers / tty / n_r3964.c
index 749a608c40b0279d64991e937161f32ac7443158..f75696f0ee2d03c83de6ee7af0ae93bd93440c4a 100644 (file)
@@ -1085,7 +1085,7 @@ static ssize_t r3964_read(struct tty_struct *tty, struct file *file,
                pMsg = remove_msg(pInfo, pClient);
                if (pMsg == NULL) {
                        /* no messages available. */
-                       if (file->f_flags & O_NONBLOCK) {
+                       if (tty_io_nonblock(tty, file)) {
                                ret = -EAGAIN;
                                goto unlock;
                        }