summaryrefslogtreecommitdiff
path: root/drivers/slimbus
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-01-02 20:54:23 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-09 19:00:13 +0300
commitf8d2c8ea5720e22522903113100c5a16683c28be (patch)
treec2c2f4e9dc0977d8d17b74fe4c37b60714e9b872 /drivers/slimbus
parentab9b3de70199f7479e251c30128b30b5559c97b7 (diff)
downloadlinux-f8d2c8ea5720e22522903113100c5a16683c28be.tar.xz
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: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/slimbus')
-rw-r--r--drivers/slimbus/messaging.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/slimbus/messaging.c b/drivers/slimbus/messaging.c
index a9a6dc4af0da..884419c37e84 100644
--- a/drivers/slimbus/messaging.c
+++ b/drivers/slimbus/messaging.c
@@ -38,6 +38,7 @@ void slim_msg_response(struct slim_controller *ctrl, u8 *reply, u8 tid, u8 len)
if (msg == NULL || msg->rbuf == NULL) {
dev_err(ctrl->dev, "Got response to invalid TID:%d, len:%d\n",
tid, len);
+ spin_unlock_irqrestore(&ctrl->txn_lock, flags);
return;
}