Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1236886pxu; Mon, 23 Nov 2020 15:34:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzgrO0AJCNVXQtL8OPs3NGvh3mq+sJp6C1YsdXpkCEMg29XlnIln3sVnSyOTTxwgnOqMtR X-Received: by 2002:a17:906:614:: with SMTP id s20mr1793933ejb.202.1606174460920; Mon, 23 Nov 2020 15:34:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606174460; cv=none; d=google.com; s=arc-20160816; b=jK0CGD0loVN+Vkp3k6AoBs6tyk12ioW9WxHL4iq9OH53U1n1936j2CBEZSQu+wUSlT DnDpynblturNfdcevcH/+ZmSfYKEqD20A5UfVDYON2HhUnMBuv4MxJiZmQmZ1YaYPEgF Rx7btcnmv9IGmqzkY2EscGSB42Ahzp/dpa1K5Id1RCG2fTJjHVltWhsd9C62waI4+mPE GtPe69AGUYR2/bEvgy1jBskjHYpvq4/Xf1OIED152BAixphDC5kiWRhSNl5/FSeaFRMI nZTr3UPr2f6cP0AQj13kKNvJlOjkPPmpWbRnpQkW+pZmM1ccnZjow+lqPSuY6xijb7f5 yfeA== 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=xQPZWi6GJzGIFoDRqqdGJRV7Rk+7N3WhVzDBeHqTjII=; b=aUNr9YS72cXvIcIDC3BvsDh2JfnMMtBANjuk+dp/sBWO8AvZZbcCBxocOEnb0ppT7m CEx3GPD9IX6DSuxkHgBRE4RYDaNUSiFyCu8m4FB5dUEm3LsdZGsC7gGXcDEpe45LANPl lhsj1WpVz1pv/SOg0Ugh4BMve9HzYyCbGrmm9XB/2j+3sw1hv8IkYIp2XvvFuKw91rcm zSAEd+8bKYX0oSchuAaXlo3gw1N/srCmjO4qvh1tmW2tNWvpZJzDjUPNfWgDrIzTAm0t tK43aIMddJ8znLi+/1HpMEHNBqy0X3RCu5d7IPrSJVa5vpuDW5e/pqgwViZd6zG7N5DZ gXQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=I2Q7YlYw; 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 gc15si7416943ejb.621.2020.11.23.15.33.58; Mon, 23 Nov 2020 15:34:20 -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=I2Q7YlYw; 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 S1730837AbgKWMbP (ORCPT + 99 others); Mon, 23 Nov 2020 07:31:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:41998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730819AbgKWMbI (ORCPT ); Mon, 23 Nov 2020 07:31: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 E8BB5208C3; Mon, 23 Nov 2020 12:31:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134668; bh=xNXtx+ISYYK3PM9pEMdoa9G/iR6Tt2NgUM/SzpDUx2Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I2Q7YlYwudQqNVswafcHGB0h+bVXKOdutQLxOwakezDAbcOCW7vv89aa97zt1MJMr JCr2ZHMTXSrQpGwa+Vqj4729FzcJP7xx1gdqwsYPaGGvOtGeSlbzGfkF0PyHa4boON 0glfQWG+Ij+9c6WkGd+pw336im9Wu7cv2yMQjRJ8= 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.19 09/91] net: b44: fix error return code in b44_init_one() Date: Mon, 23 Nov 2020 13:21:29 +0100 Message-Id: <20201123121809.759842857@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121809.285416732@linuxfoundation.org> References: <20201123121809.285416732@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 @@ -2389,7 +2389,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;