ipmi:ssif: Add missing unlock in error branch
commit1b9008cdae94e6c4ae42bc90bf031b9fefcf7a93
authorCorey Minyard <cminyard@mvista.com>
Fri, 30 Jun 2017 12:18:08 +0000 (30 07:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2017 22:08:02 +0000 (27 15:08 -0700)
tree3dbfbc6a93a90d57aa88f7eb68fa4410453d95bc
parent685e124ebc7f11de248b68f883cd845523a63fc9
ipmi:ssif: Add missing unlock in error branch

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.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/ipmi/ipmi_ssif.c