提交 f8d2c8ea 编写于 作者: W Wei Yongjun 提交者: Greg Kroah-Hartman

slimbus: Fix missing unlock on error in slim_msg_response()

Add the missing unlock before return from function slim_msg_response()
in the error handling case.
Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 ab9b3de7
...@@ -38,6 +38,7 @@ void slim_msg_response(struct slim_controller *ctrl, u8 *reply, u8 tid, u8 len) ...@@ -38,6 +38,7 @@ void slim_msg_response(struct slim_controller *ctrl, u8 *reply, u8 tid, u8 len)
if (msg == NULL || msg->rbuf == NULL) { if (msg == NULL || msg->rbuf == NULL) {
dev_err(ctrl->dev, "Got response to invalid TID:%d, len:%d\n", dev_err(ctrl->dev, "Got response to invalid TID:%d, len:%d\n",
tid, len); tid, len);
spin_unlock_irqrestore(&ctrl->txn_lock, flags);
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册