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

Alistair Popple alistair at popple.id.au
Fri Feb 20 18:01:20 AEDT 2015


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 at popple.id.au>
---
 hw/bt.c | 1 -
 1 file changed, 1 deletion(-)

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;
 	}
 
-- 
1.8.3.2



More information about the Skiboot mailing list