s390 (4/6): 3270 console driver.
PATCH 1/1 s390 (4/6): 3270 console driver.
[PATCH] s390: 3270 driver.
From: Martin Schwidefsky <[email protected]>
3270 device driver change:
- Add missing irb error checking.
diffstat:
drivers/s390/char/raw3270.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
drivers/s390/char/raw3270.c +4 -2
@@ -345,8 +345,10 @@ rq = (struct raw3270_request *) intparm; view = rq ? rq->view : rp->view; -if (irb->scsw.dstat == - (DEV_STAT_CHN_END |DEV_STAT_DEV_END |DEV_STAT_UNIT_EXCEP )) { +if (IS_ERR (irb)) + rc =RAW3270_IO_RETRY ; +else if (irb->scsw.dstat == (DEV_STAT_CHN_END |DEV_STAT_DEV_END | +DEV_STAT_UNIT_EXCEP )) {/* Handle CE-DE-UE and subsequent UDE */ set_bit (RAW3270_FLAGS_BUSY , &rp->flags); rc =RAW3270_IO_BUSY ;