From: Corey Minyard Date: Fri, 05 May 2017 19:40:15 +0000 Subject: Re: [PATCH] ipmi_ssif: unlock on allocation failure Message-Id: <13fb5ee9-589a-b8a5-ca0d-2224d01896ea@acm.org> List-Id: References: <20170505053324.uvufggdlbml2c56e@mwanda> In-Reply-To: <20170505053324.uvufggdlbml2c56e@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kernel-janitors@vger.kernel.org On 05/05/2017 12:33 AM, Dan Carpenter wrote: > We should unlock and re-enable IRQs if this allocation fails. > > Fixes: 259307074bfc ("ipmi: Add SMBus interface driver (SSIF) ") > Signed-off-by: Dan Carpenter Thanks, Dan, in queue for 4.13. -corey > diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c > index 0b22a9be5029..6dd6476ea5d3 100644 > --- a/drivers/char/ipmi/ipmi_ssif.c > +++ b/drivers/char/ipmi/ipmi_ssif.c > @@ -408,6 +408,7 @@ static void start_event_fetch(struct ssif_info *ssif_info, unsigned long *flags) > msg = ipmi_alloc_smi_msg(); > if (!msg) { > ssif_info->ssif_state = SSIF_NORMAL; > + ipmi_ssif_unlock_cond(ssif_info, flags); > return; > } > > @@ -430,6 +431,7 @@ static void start_recv_msg_fetch(struct ssif_info *ssif_info, > msg = ipmi_alloc_smi_msg(); > if (!msg) { > ssif_info->ssif_state = SSIF_NORMAL; > + ipmi_ssif_unlock_cond(ssif_info, flags); > return; > } >