summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hw/bt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/bt.c b/hw/bt.c
index 610aa3f2..9f6244a5 100644
--- a/hw/bt.c
+++ b/hw/bt.c
@@ -490,7 +490,7 @@ static int bt_del_ipmi_msg(struct ipmi_msg *ipmi_msg)
struct bt_msg *bt_msg = container_of(ipmi_msg, struct bt_msg, ipmi_msg);
lock(&bt.lock);
- list_del(&bt_msg->link);
+ list_del_from(&bt.msgq, &bt_msg->link);
bt.queue_len--;
bt_send_and_unlock();
return 0;
OpenPOWER on IntegriCloud