diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2007-02-05 21:17:36 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-02-05 21:17:36 +0100 |
commit | 758976f9a55cb22ddc602a0690d67f9546e3e43f (patch) | |
tree | 760b3e46fb3e3eb793b8744dca8541c9e82a6375 /drivers/s390/cio/chsc.c | |
parent | d8c351a97e492dcf24021a0875bf138bfa1374f9 (diff) | |
download | talos-obmc-linux-758976f9a55cb22ddc602a0690d67f9546e3e43f.tar.gz talos-obmc-linux-758976f9a55cb22ddc602a0690d67f9546e3e43f.zip |
[S390] cio: Catch operand exceptions on stsch.
If we have a subchannel id which has been generated via
for_each_subchannel(), it might contain an invalid subchannel set id.
We need to catch the ensuing operand exception by using stsch_err()
instead of stsch() in all possible cases.
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/chsc.c')
-rw-r--r-- | drivers/s390/cio/chsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/cio/chsc.c b/drivers/s390/cio/chsc.c index 15b0e6329cf3..514daeaba705 100644 --- a/drivers/s390/cio/chsc.c +++ b/drivers/s390/cio/chsc.c @@ -608,7 +608,7 @@ __chp_add_new_sch(struct subchannel_id schid) struct schib schib; int ret; - if (stsch(schid, &schib)) + if (stsch_err(schid, &schib)) /* We're through */ return need_rescan ? -EAGAIN : -ENXIO; |