Commit 2b31001d authored by Roel Kluin's avatar Roel Kluin Committed by Martin Schwidefsky

[S390] tty: PTR_ERR return of wrong pointer in fs3270_open()

Return the PTR_ERR of the correct pointer.
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent b59cdcb3
......@@ -467,7 +467,7 @@ fs3270_open(struct inode *inode, struct file *filp)
if (IS_ERR(ib)) {
raw3270_put_view(&fp->view);
raw3270_del_view(&fp->view);
rc = PTR_ERR(fp);
rc = PTR_ERR(ib);
goto out;
}
fp->rdbuf = ib;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment