瀏覽代碼

[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>
Roel Kluin 15 年之前
父節點
當前提交
2b31001d30
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/s390/char/fs3270.c

+ 1 - 1
drivers/s390/char/fs3270.c

@@ -467,7 +467,7 @@ fs3270_open(struct inode *inode, struct file *filp)
 	if (IS_ERR(ib)) {
 	if (IS_ERR(ib)) {
 		raw3270_put_view(&fp->view);
 		raw3270_put_view(&fp->view);
 		raw3270_del_view(&fp->view);
 		raw3270_del_view(&fp->view);
-		rc = PTR_ERR(fp);
+		rc = PTR_ERR(ib);
 		goto out;
 		goto out;
 	}
 	}
 	fp->rdbuf = ib;
 	fp->rdbuf = ib;