Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp178500ybh; Tue, 17 Mar 2020 20:48:16 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtlWBg7Aiko/9SAFGhpVREEvPPhcyDbc2CKbViiZ48aCx7Ys39lk3Pmqa6DSzlmWgxK/Hfo X-Received: by 2002:aca:ed44:: with SMTP id l65mr1655579oih.63.1584503295918; Tue, 17 Mar 2020 20:48:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584503295; cv=none; d=google.com; s=arc-20160816; b=LDIeI/cjmCvoqa7qESPa+Xk+SRxyRzUiFoOvJ8Y//dhIXIeAQp/GK9VE/CJmSmb7/I lG+Ve09lYbac1UhZpGAE5an3wQglzYc8tSvCaiqa6QiuTJShhvHjYfMhRTA/0vRtpokz 2ms1nPsSu8iZIDijPk7MSg/HRrXOngOxNAp3IABjw9KBQHCBg831wvoETlgnD61OGD3s +ou4PDuVOfKbml58sJ+XOzCAiENlEKi6M916tPClAu2qqxaZ39rH0aiCf/6L0fjk9Ce8 WmvDjXYYgXM3Pjg2jvopwYNxPLwcdJ52clVtAJV2wQPzvQpkPg1B+coI+iJ3deALDZTm d78Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-filter; bh=xuZCDNN9pSELQakSvlPTRXTcC0ocNTGcUO4DMHnp700=; b=MaWIib+0kmVWR5nLQFhh3J0vmdEcTtXxqLtKLi8J+yPAJ5bJxCaH6v3hwfbR60BuqX iByBWdmpebGojOYlODkLtLRstuwyALufyJsWocJ//2t4NWIFlCixh4+pLEQDZdPnTzie rh0/emE662W66UqKRhVuJjWcxM3S6MjMhJFlEAnmpnkYSL7joSp+AiRbhU1IsAKyu7fN XvUMSDpViZT7X9Ao7PpAva+AYrnwcnXuhqG4siwFRRqwJg0uzwGOMI/XaYm2Hc1yijS0 y8xUTG7oA1WdTDZcfClK1rLm8EsMuWuBICuh9uRnbbpGMgamwUiTP84UvkeMHgXYk2Wh 0TTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=JwACtE1o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si2654136oti.195.2020.03.17.20.48.02; Tue, 17 Mar 2020 20:48:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=JwACtE1o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726596AbgCRDrN (ORCPT + 99 others); Tue, 17 Mar 2020 23:47:13 -0400 Received: from linux.microsoft.com ([13.77.154.182]:44458 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726229AbgCRDrN (ORCPT ); Tue, 17 Mar 2020 23:47:13 -0400 Received: from MININT-65B7IF6 (162-237-133-238.lightspeed.rcsntx.sbcglobal.net [162.237.133.238]) by linux.microsoft.com (Postfix) with ESMTPSA id AA0DC20B9C02; Tue, 17 Mar 2020 20:47:11 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com AA0DC20B9C02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1584503232; bh=xuZCDNN9pSELQakSvlPTRXTcC0ocNTGcUO4DMHnp700=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JwACtE1oSIFgPLCqqh+/lqbnKmxr+UmqzX/8pQ7cwoE8qipna5V5iDQgsm3Sb/ItF MHg1r1UhO4WMynly1O14MzMVXSyTlH0hLfG4V04ureOoptrG/pqt/uZ1Lj6Uxspw2o +Vl+d6NgmYtVwzYoJrhRmnj1Q1a+xflsmz7Bz7iw= Date: Tue, 17 Mar 2020 22:47:06 -0500 From: Tyler Hicks To: Rayagonda Kokatanur Cc: Jassi Brar , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, BCM Kernel Feedback Subject: Re: [PATCH v2 1/1] maillbox: bcm-flexrm-mailbox: handle cmpl_pool dma allocation failure Message-ID: <20200318034706.GA4904@MININT-65B7IF6> References: <20200318033055.5335-1-rayagonda.kokatanur@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200318033055.5335-1-rayagonda.kokatanur@broadcom.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-03-18 09:00:55, Rayagonda Kokatanur wrote: > Handle 'cmpl_pool' dma memory allocation failure. > > Fixes: a9a9da47f8e6 ("mailbox: no need to check return value of debugfs_create functions") > Signed-off-by: Rayagonda Kokatanur Thanks for adding the Fixes tag. Reviewed-by: Tyler Hicks Tyler > --- > Changes from v1: > - Address code review comments from Tyler Hicks, > Add missing Fixes tag. > > drivers/mailbox/bcm-flexrm-mailbox.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/mailbox/bcm-flexrm-mailbox.c b/drivers/mailbox/bcm-flexrm-mailbox.c > index 8ee9db274802..bee33abb5308 100644 > --- a/drivers/mailbox/bcm-flexrm-mailbox.c > +++ b/drivers/mailbox/bcm-flexrm-mailbox.c > @@ -1599,6 +1599,7 @@ static int flexrm_mbox_probe(struct platform_device *pdev) > 1 << RING_CMPL_ALIGN_ORDER, 0); > if (!mbox->cmpl_pool) { > ret = -ENOMEM; > + goto fail_destroy_bd_pool; > } > > /* Allocate platform MSIs for each ring */ > @@ -1661,6 +1662,7 @@ static int flexrm_mbox_probe(struct platform_device *pdev) > platform_msi_domain_free_irqs(dev); > fail_destroy_cmpl_pool: > dma_pool_destroy(mbox->cmpl_pool); > +fail_destroy_bd_pool: > dma_pool_destroy(mbox->bd_pool); > fail: > return ret; > -- > 2.17.1 >