提交 e4c14e20 编写于 作者: J Jan Glauber 提交者: Martin Schwidefsky

[S390] qdio: Dont call qdio_shutdown in case qdio_activate fails

Remove the call to qdio_shutdown from qdio_activate since the upper-layer
drivers are responsible to call qdio_shutdown when qdio_activate returns
with an error.
Signed-off-by: NJan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 b4547402
...@@ -1404,9 +1404,8 @@ int qdio_activate(struct ccw_device *cdev) ...@@ -1404,9 +1404,8 @@ int qdio_activate(struct ccw_device *cdev)
switch (irq_ptr->state) { switch (irq_ptr->state) {
case QDIO_IRQ_STATE_STOPPED: case QDIO_IRQ_STATE_STOPPED:
case QDIO_IRQ_STATE_ERR: case QDIO_IRQ_STATE_ERR:
mutex_unlock(&irq_ptr->setup_mutex); rc = -EIO;
qdio_shutdown(cdev, QDIO_FLAG_CLEANUP_USING_CLEAR); break;
return -EIO;
default: default:
qdio_set_state(irq_ptr, QDIO_IRQ_STATE_ACTIVE); qdio_set_state(irq_ptr, QDIO_IRQ_STATE_ACTIVE);
rc = 0; rc = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册