diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-12-18 17:43:19 +0100 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2009-12-18 17:43:31 +0100 |
commit | 2b31001d306a2b5fd690eee878d2ee61a0a0674c (patch) | |
tree | 254eb47dcfd0f5e201146419343f03fb3bea0c01 /drivers/s390 | |
parent | b59cdcb339fc7286161b80403f6af63acf26876f (diff) | |
download | op-kernel-dev-2b31001d306a2b5fd690eee878d2ee61a0a0674c.zip op-kernel-dev-2b31001d306a2b5fd690eee878d2ee61a0a0674c.tar.gz |
[S390] tty: PTR_ERR return of wrong pointer in fs3270_open()
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>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/char/fs3270.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/fs3270.c b/drivers/s390/char/fs3270.c index 28e4649..247b2b9 100644 --- a/drivers/s390/char/fs3270.c +++ b/drivers/s390/char/fs3270.c @@ -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; |