lkml.org 
[lkml]   [2004]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] s390 (4/6): 3270 console driver.
[PATCH] s390: 3270 driver.

From: Martin Schwidefsky <schwidefsky@de.ibm.com>

3270 device driver change:
- Add missing irb error checking.

diffstat:
drivers/s390/char/raw3270.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)

diff -urN linux-2.6/drivers/s390/char/raw3270.c linux-2.6-s390/drivers/s390/char/raw3270.c
--- linux-2.6/drivers/s390/char/raw3270.c Wed Apr 28 17:51:15 2004
+++ linux-2.6-s390/drivers/s390/char/raw3270.c Wed Apr 28 17:51:39 2004
@@ -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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.018 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site