ipmi_ssif: unlock on allocation failure
commitcf9806f32ef63b745f2486e0dbb2ac21f4ca44f0
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 5 May 2017 05:33:24 +0000 (5 08:33 +0300)
committerCorey Minyard <cminyard@mvista.com>
Mon, 8 May 2017 19:01:41 +0000 (8 14:01 -0500)
tree11ba90783cafc0fe28779119629b6754935e53d1
parent13e0988140374123bead1dd27c287354cb95108e
ipmi_ssif: unlock on allocation failure

We should unlock and re-enable IRQs if this allocation fails.

Fixes: 259307074bfc ("ipmi: Add SMBus interface driver (SSIF) ")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_ssif.c