Skip to content

Commit cf9806f

Browse files
Dan Carpentercminyard
authored andcommitted
ipmi_ssif: unlock on allocation failure
We should unlock and re-enable IRQs if this allocation fails. Fixes: 2593070 ("ipmi: Add SMBus interface driver (SSIF) ") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Corey Minyard <[email protected]>
1 parent 13e0988 commit cf9806f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/char/ipmi/ipmi_ssif.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ static void start_event_fetch(struct ssif_info *ssif_info, unsigned long *flags)
408408
msg = ipmi_alloc_smi_msg();
409409
if (!msg) {
410410
ssif_info->ssif_state = SSIF_NORMAL;
411+
ipmi_ssif_unlock_cond(ssif_info, flags);
411412
return;
412413
}
413414

@@ -430,6 +431,7 @@ static void start_recv_msg_fetch(struct ssif_info *ssif_info,
430431
msg = ipmi_alloc_smi_msg();
431432
if (!msg) {
432433
ssif_info->ssif_state = SSIF_NORMAL;
434+
ipmi_ssif_unlock_cond(ssif_info, flags);
433435
return;
434436
}
435437

0 commit comments

Comments
 (0)