Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp841575pxu; Mon, 23 Nov 2020 05:39:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpV2BVKw09UkMQBCOUbW4pGZPT4DxfvxNdfHh9/f2bWKqfkJ1dvKozQ6c09YZwJKiu9bJ9 X-Received: by 2002:a17:906:71d3:: with SMTP id i19mr16707799ejk.187.1606138748696; Mon, 23 Nov 2020 05:39:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606138748; cv=none; d=google.com; s=arc-20160816; b=RMN/p9ZGg0NjIZIqoGPmW5pBU/d8IRHgJWiQZdGpbCS2oMWeEd+rTpznzOfHMsCmO3 kPPDlWFK5aULpQ7rpA8DT1gCJlUrVKcJyZlYUbHoJVn0Wq0RBc1n81+ZKLkeQTyP6ZrO 8WEROBiiQMfOQOvyfi3KUy76gWVDR9SsO7rwrYwVEqqD0KddLBATsz2pa1QqLbhgj3RI 4pWL9H+jdGnpg10dGls5ELlpK16J5mlP6g0FLPlNNN5TvuAlpQCiYujUc4yjKSl8ff1B nfh25g2b+94jtnwV7/orMIr501DD2NVCp44a178QXg+TrUeFBZrT9aEkI8X/3nMO+kqz rtHg== 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=nBy7F59QvPWV5j7vYBY9cFxZYfkhS9D7CoXarFuuZTA=; b=qOWCal3n19XVYWF7C95HlkLTRSO/D1ZPzqdVwYy7go7+YM3jZHHwGq4XFEtmHSHS3w dqvtF65FrvpAjJ05ZAr6aVALPRddLz+77YDLPinXc9ezSSCoVpOh0A0/39mnQVlQzq6R RTUHwXqU1V8mGn7uATKvv8rr8D1nWKnchSzrr1n8RBTTlucfpHS6yEBtaez1MEcmc9b2 iYT7FthQWJqEUE59fzcPRwef2wjy6SfW4VGQhdNtGGuWUgapvjL6GihRmKgBe25MPjhe +rTn3loZI/8M9H7V7TH5yr7bm9/EARtWRMICxcYgq0yr0vaBamzLc4QA7YcXJSy6e9o6 qTbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZUhmAGVp; 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 r19si6872167edb.489.2020.11.23.05.38.45; Mon, 23 Nov 2020 05:39:08 -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=ZUhmAGVp; 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 S1729963AbgKWMZR (ORCPT + 99 others); Mon, 23 Nov 2020 07:25:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:34620 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729933AbgKWMZI (ORCPT ); Mon, 23 Nov 2020 07:25:08 -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 4032B20728; Mon, 23 Nov 2020 12:25:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134306; bh=WeYy9fuvJ9LpbzTwBeMlFziLQMDzl1r1zC/bHgwzFEc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZUhmAGVpo9TffNz796GMCH0PVeUP1PintfAx/bGtRjNb5dX5HsJ3sYpGTnlJLUs6f cj5OOPTHy9k8elnZQVlBqnAtT9mtC0zgVSlVaX4mcitE++f3jBJOBQkM5Wfz86MNkI TA6LbqHZQER8RRPNLkK0+fn1FS31yobmBdpqhhJk= 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 4.9 06/47] net: b44: fix error return code in b44_init_one() Date: Mon, 23 Nov 2020 13:21:52 +0100 Message-Id: <20201123121805.858893655@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121805.530891002@linuxfoundation.org> References: <20201123121805.530891002@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 @@ -2390,7 +2390,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;