Skip to content
Commit bdf2829c authored by Nicholas Krause's avatar Nicholas Krause Committed by Corey Minyard
Browse files

ipmi: Free ipmi_recv_msg messages from the linked list on close



This adds a loop through the elements in the linked list, recv_msgs using
list_for_entry_safe in order to free messages in this list.  In addition
we are using the safe version of this marco in order to prevent use after
bugs related to deleting the element we are on currently by holding a
pointer to the next element after the current one we are on and freeing
with the function, ipmi_free_recv_msg internally in this loop.

Signed-off-by: default avatarNicholas Krause <xerofoify@gmail.com>
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 191cc414
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment