diff mbox

[2/2] bt: Minor locking fix for bt_get_resp()

Message ID 1424415680-21726-2-git-send-email-alistair@popple.id.au
State Accepted
Headers show

Commit Message

Alistair Popple Feb. 20, 2015, 7:01 a.m. UTC
bt_get_resp() should return with the bt lock held. Under very rare
error conditions bt_get_resp() would drop the lock before
returning.

Signed-off-by: Alistair Popple <alistair@popple.id.au>
---
 hw/bt.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox

Patch

diff --git a/hw/bt.c b/hw/bt.c
index 3278896..93df22e 100644
--- a/hw/bt.c
+++ b/hw/bt.c
@@ -254,7 +254,6 @@  static void bt_get_resp(void)
 		prlog(PR_INFO, "BT: Nobody cared about a response to an BT/IPMI message\n");
 		bt_flush_msg();
 		bt_set_state(BT_STATE_B_BUSY);
-		unlock(&bt.lock);
 		return;
 	}