Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1238549pxu; Mon, 23 Nov 2020 15:37:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBPhhqCGJw7n4Eoa8RJOcMTwW08PwnMtHOaAsUwgGV4JMRlqrWyLxt9RQTMkTNTn28m2Tj X-Received: by 2002:a17:906:b0f:: with SMTP id u15mr1851874ejg.109.1606174626084; Mon, 23 Nov 2020 15:37:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606174626; cv=none; d=google.com; s=arc-20160816; b=aIhjN1ysLPBoLES6vEN7mUKZ1qa8uePLi+5KN3tcJbDfXpiomEaO1y0dzL9djHSYUl 62zoR9BZY6Rn/F6S1MuP6JPElxO7RkB8N1dA+QpscIp6ffDQI8IIzR2n49fJfgBTOP/B BMvArmds/qyK05T1nB9unGs+YrVoqvx5JH/pL/fR82+7WFvm/JZBV9RXfBm2mTaxJcox e4d7TYGYV8e3vMVtF13jKQJh1VUTRL8vX4w5MKxgpX3jrn8NoaMlMFh5ZAHCh1xPwvhw 3794JZfj8E6aaF4/yBNCdkD1/BwW26YgO7iQEhXBqffFuEbZzHaoBHusEAVTNFON2J5P SaLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Z6CCQu7dMGeITZG8/gXYpwSAa3tU/5nqi2pmWd12oXs=; b=LuaZ3Nk63J8PJ/gjq/s/B1/vGRFGqaPO1f2NbrIOPhrY5FK2H4Psfjxo9F2tWiz7ps /OsEDYEm8o3AJV0INgBDYuXR6upg5I9JFQksnpdDIuHYbbqdRznXtKDIxnIB+EQQfHOx MDCGRoGHYtc2hbD5tFs9ki9rnJGntkk5Ta4IWJ52TbdteMDkWFnQ2CTmXlEG0iH/zlHQ 0nJMimzJ/ar4MVsSQJNWPayR15srK5LnyCfAZUQVEg2cJ1xxxZ/0Wa5Mwrz7TCM59r8i yBqObf6ZYfXyvGJp9GIJC1L2e+GXdyi3Mr7TDptpUFTFqsMODpx65ek/aDxPjMTYVKBC 0Khw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ys9+scz/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a27si7201043ejd.485.2020.11.23.15.36.43; Mon, 23 Nov 2020 15:37:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ys9+scz/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731306AbgKWMeG (ORCPT + 99 others); Mon, 23 Nov 2020 07:34:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:45794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731289AbgKWMeE (ORCPT ); Mon, 23 Nov 2020 07:34:04 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D2D3D20721; Mon, 23 Nov 2020 12:34:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134844; bh=NHmPMnESY0zBAZW3SwxeKcuHVYiDhqTz+NIMx+Ucv38=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ys9+scz/ZrzPi+6/qFlVBQGQKJaVpqBk7ShW2YSfEpIaFa/foj96fiGsg+LDXQ/0C H5rtXRclqk/3FPvzy2WvL4U5lKTUy+tT9agaW3TZYm+oTscKnPHjS76mnIvG+qQ42r R0GAbAcxxP3R0B/n2Tkm/IuUg3OKYz/P12S/0Lx4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Zhang Changzhong , Michael Chan , Jakub Kicinski Subject: [PATCH 5.4 011/158] net: b44: fix error return code in b44_init_one() Date: Mon, 23 Nov 2020 13:20:39 +0100 Message-Id: <20201123121820.483684836@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121819.943135899@linuxfoundation.org> References: <20201123121819.943135899@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhang Changzhong [ Upstream commit 7b027c249da54f492699c43e26cba486cfd48035 ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 39a6f4bce6b4 ("b44: replace the ssb_dma API with the generic DMA API") Reported-by: Hulk Robot Signed-off-by: Zhang Changzhong Reviewed-by: Michael Chan Link: https://lore.kernel.org/r/1605582131-36735-1-git-send-email-zhangchangzhong@huawei.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/broadcom/b44.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/net/ethernet/broadcom/b44.c +++ b/drivers/net/ethernet/broadcom/b44.c @@ -2391,7 +2391,8 @@ static int b44_init_one(struct ssb_devic goto err_out_free_dev; } - if (dma_set_mask_and_coherent(sdev->dma_dev, DMA_BIT_MASK(30))) { + err = dma_set_mask_and_coherent(sdev->dma_dev, DMA_BIT_MASK(30)); + if (err) { dev_err(sdev->dev, "Required 30BIT DMA mask unsupported by the system\n"); goto err_out_powerdown;