diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2009-03-26 10:24:17 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-03-26 10:24:16 -0400 |
commit | 17e7d87d9f88480a75fc9c5978ab38131a074277 (patch) | |
tree | 7dfaa416a1d620c2112c0bb34c099b0a730442e9 /drivers/s390 | |
parent | 94cbc203bee4ea87bd49ad56f6c5381bc10d8b6b (diff) |
[S390] cio: fix rc generation after chsc call
In some situations a rc in __chsc_do_secm will be overwritten
by another one. This shouldn't do harm since todays callers
don't check for _specific_ errors but fix it for the sake of
correctness.
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/cio/chsc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/cio/chsc.c b/drivers/s390/cio/chsc.c index 7399b07a1aeb..883f16f96f22 100644 --- a/drivers/s390/cio/chsc.c +++ b/drivers/s390/cio/chsc.c | |||
@@ -589,6 +589,7 @@ __chsc_do_secm(struct channel_subsystem *css, int enable, void *page) | |||
589 | case 0x0102: | 589 | case 0x0102: |
590 | case 0x0103: | 590 | case 0x0103: |
591 | ret = -EINVAL; | 591 | ret = -EINVAL; |
592 | break; | ||
592 | default: | 593 | default: |
593 | ret = chsc_error_from_response(secm_area->response.code); | 594 | ret = chsc_error_from_response(secm_area->response.code); |
594 | } | 595 | } |