diff options
Diffstat (limited to 'drivers/s390/cio/device_ops.c')
-rw-r--r-- | drivers/s390/cio/device_ops.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/s390/cio/device_ops.c b/drivers/s390/cio/device_ops.c index 49b58eb0fab8..a1718a0aa539 100644 --- a/drivers/s390/cio/device_ops.c +++ b/drivers/s390/cio/device_ops.c | |||
@@ -193,8 +193,15 @@ int ccw_device_start_key(struct ccw_device *cdev, struct ccw1 *cpa, | |||
193 | return -EACCES; | 193 | return -EACCES; |
194 | } | 194 | } |
195 | ret = cio_start_key (sch, cpa, lpm, key); | 195 | ret = cio_start_key (sch, cpa, lpm, key); |
196 | if (ret == 0) | 196 | switch (ret) { |
197 | case 0: | ||
197 | cdev->private->intparm = intparm; | 198 | cdev->private->intparm = intparm; |
199 | break; | ||
200 | case -EACCES: | ||
201 | case -ENODEV: | ||
202 | dev_fsm_event(cdev, DEV_EVENT_VERIFY); | ||
203 | break; | ||
204 | } | ||
198 | return ret; | 205 | return ret; |
199 | } | 206 | } |
200 | 207 | ||