Patch "ipmi:ssif: Add missing unlock in error branch" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
ipmi:ssif: Add missing unlock in error branch
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ipmi-ssif-add-missing-unlock-in-error-branch.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
4495ec6d770e1bca7a04e93ac453ab6720c56c5dMon Sep 17 00:00:00 2001
From: Corey Minyard <[email protected]>
Date: Fri, 30 Jun 2017 07:18:08 -0500
Subject: ipmi:ssif: Add missing unlock in error branch
From: Corey Minyard <[email protected]>
commit 4495ec6d770e1bca7a04e93ac453ab6720c56c5d upstream.
When getting flags, a response to a different message would result in a deadlock because of a missing unlock. Add that unlock and a comment. Found by static analysis.
--- drivers/char/ipmi/ipmi_ssif.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/char/ipmi/ipmi_ssif.c +5 -0
@@ -758,6 +758,11 @@ static void msg_done_handler(struct ssif result, len, data[2]); }else if (data[0 ] != (IPMI_NETFN_APP_REQUEST |1 ) <<2 || data[1 ] !=IPMI_GET_MSG_FLAGS_CMD ) { +/* +* Don't abort here, maybe it was a queued +* response to a previous command. +*/ +ipmi_ssif_unlock_cond (ssif_info, flags);pr_warn (PFX "Invalid response getting flags: %x %x\n" , data[0 ], data[1 ]); }else {
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/ipmi-ssif-add-missing-unlock-in-error-branch.patch queue-4.4/ipmi-use-rcu-lock-around-call-to-intf-handlers-sender.patch