From: Roel Kluin Date: Fri, 18 Dec 2009 16:43:19 +0000 (+0100) Subject: [S390] tty: PTR_ERR return of wrong pointer in fs3270_open() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2b31001d306a2b5fd690eee878d2ee61a0a0674c;p=openwrt%2Fstaging%2Fblogic.git [S390] tty: PTR_ERR return of wrong pointer in fs3270_open() Return the PTR_ERR of the correct pointer. Signed-off-by: Roel Kluin Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/char/fs3270.c b/drivers/s390/char/fs3270.c index 28e4649fa9e4..247b2b934728 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;