aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/cio/cio.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/s390/cio/cio.c b/drivers/s390/cio/cio.c
index f16c15c13f6e..11f632f9db58 100644
--- a/drivers/s390/cio/cio.c
+++ b/drivers/s390/cio/cio.c
@@ -577,8 +577,11 @@ cio_validate_subchannel (struct subchannel *sch, struct subchannel_id schid)
577 } 577 }
578 578
579 /* Initialization for io subchannels. */ 579 /* Initialization for io subchannels. */
580 if (!css_sch_is_valid(&sch->schib)) 580 if (!css_sch_is_valid(&sch->schib)) {
581 return -ENODEV; 581 err = -ENODEV;
582 goto out;
583 }
584
582 /* Devno is valid. */ 585 /* Devno is valid. */
583 if (is_blacklisted (sch->schid.ssid, sch->schib.pmcw.dev)) { 586 if (is_blacklisted (sch->schid.ssid, sch->schib.pmcw.dev)) {
584 /* 587 /*