Skip to content

Commit

Permalink
[S390] tty: PTR_ERR return of wrong pointer in fs3270_open()
Browse files Browse the repository at this point in the history
Return the PTR_ERR of the correct pointer.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Roel Kluin authored and Martin Schwidefsky committed Dec 18, 2009
1 parent b59cdcb commit 2b31001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/char/fs3270.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2b31001

Please sign in to comment.