aboutsummaryrefslogtreecommitdiff
path: root/hw/bt.c
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2015-02-20 18:01:20 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-02-23 15:09:59 +1100
commit42167a5feb7627235cbfec059ec66def0ef42191 (patch)
tree8ae9499489ebdd33f7f05927b76ef69aae9e5f39 /hw/bt.c
parente2f52aa8ea1c31794d03c6d7298f8270e702698d (diff)
downloadskiboot-42167a5feb7627235cbfec059ec66def0ef42191.zip
skiboot-42167a5feb7627235cbfec059ec66def0ef42191.tar.gz
skiboot-42167a5feb7627235cbfec059ec66def0ef42191.tar.bz2
bt: Minor locking fix for bt_get_resp()
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> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/bt.c')
-rw-r--r--hw/bt.c1
1 files changed, 0 insertions, 1 deletions
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;
}