Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1124288pxx; Tue, 27 Oct 2020 08:48:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpt+ZCoKRAC7o/qNoIFGldCkJn2bnYuIwWV7QV8aD2hjzLlExmgf56BN7O1DzOklyVaZIv X-Received: by 2002:aa7:d5d8:: with SMTP id d24mr3074651eds.8.1603813710093; Tue, 27 Oct 2020 08:48:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603813710; cv=none; d=google.com; s=arc-20160816; b=iH5fHYguPYjzs4DQjKU90+xD4ejb99zNrWNTroH54XgYfceSTNIufxBKloQFYV7l1t nAI9YL5ZdbcPJ3sdnf10/LSVRsWFxV3o1TqONO2eeoP0lSjMQ/ICI/9bJJhlORYMJ3OI 9KGkY1JdyIgBLF1ozDaZc0lI1xW6Z1LalcjyLjx14s67pEajcFMcW0aRmzspD+MqoSly G6XRhYqGAeeiKqrve9QXLcEZXIhmrWYgAuiuD1JLDNyUCwYcN0HdRmdXWp/WzIpM/4ru YAz6hjenzicnrMNLDilw9HMuk4TzZwEY8vmtT6oEdcrR3omUZ91P2m7vDfdKrgM9/MS+ e9FQ== 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=Zv9PPhcS1uSnAvX3ffIGB7JxXOjRabVbkbF8lGPemFA=; b=ID+lwnbKS0Wm+gaOElvsqmwWNoptRTi7gYvze8jatkxxFz79IA5OCZf/nfAX/ltq3D bKR3Tledzwc/AWUCLvNgk7KFFCIcjcQYBMF+2UQd7Jna3DDNEXqM/LMl0BcKx5SAhH3e PK4zmWvO0o50oS8UJnE8AIgztFRLUQKKIbWJ+z2K/3JqDtJchpwRpzO/jE1/mQkvi5Lq SSU8eIewOGjyW7GyCCnYnhLYpx9p3HVto3V7eqZe+/M2SCG7Rj7gYHIYF5BQ4yV2/3Li W79Z0P5faoEODiH16LE1mJbAadZLYpH4jrfqdY6AqNdGqxh0aUg9uVNtD9pWGZQsX5g4 soOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WwAXwA64; 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=fail (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 q1si1116854edw.594.2020.10.27.08.48.07; Tue, 27 Oct 2020 08:48:30 -0700 (PDT) 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=@kernel.org header.s=default header.b=WwAXwA64; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1781577AbgJ0Ozx (ORCPT + 99 others); Tue, 27 Oct 2020 10:55:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:46906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764540AbgJ0Oq6 (ORCPT ); Tue, 27 Oct 2020 10:46:58 -0400 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 92A3C206E5; Tue, 27 Oct 2020 14:46:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810018; bh=w+VEKb+Hf3pXAkLmexrxfM5CSLIe4/wyNYmE6gGGBjc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WwAXwA64q//oRFiZSM9GyUUJ85k4XWTca5p85waMbhmGQUIQITALUG7Ta5jLVCHxN Meo27nh4JRod7/OHlCezzFDnBcVglAi/12Xkhm/GkBNH38E8WqDW4s7El2yQH1vy5F 9u2g3VvtSXQGnBZlRNyKsAApE7BMkm2+gnLr9/P4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Valentin Vidic , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.4 400/408] net: korina: cast KSEG0 address to pointer in kfree Date: Tue, 27 Oct 2020 14:55:38 +0100 Message-Id: <20201027135513.552287641@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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: Valentin Vidic [ Upstream commit 3bd57b90554b4bb82dce638e0668ef9dc95d3e96 ] Fixes gcc warning: passing argument 1 of 'kfree' makes pointer from integer without a cast Fixes: 3af5f0f5c74e ("net: korina: fix kfree of rx/tx descriptor array") Reported-by: kernel test robot Signed-off-by: Valentin Vidic Link: https://lore.kernel.org/r/20201018184255.28989-1-vvidic@valentin-vidic.from.hr Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/korina.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/korina.c b/drivers/net/ethernet/korina.c index 5bdff77c0ad10..993f495e2bf7b 100644 --- a/drivers/net/ethernet/korina.c +++ b/drivers/net/ethernet/korina.c @@ -1113,7 +1113,7 @@ static int korina_probe(struct platform_device *pdev) return rc; probe_err_register: - kfree(KSEG0ADDR(lp->td_ring)); + kfree((struct dma_desc *)KSEG0ADDR(lp->td_ring)); probe_err_td_ring: iounmap(lp->tx_dma_regs); probe_err_dma_tx: @@ -1133,7 +1133,7 @@ static int korina_remove(struct platform_device *pdev) iounmap(lp->eth_regs); iounmap(lp->rx_dma_regs); iounmap(lp->tx_dma_regs); - kfree(KSEG0ADDR(lp->td_ring)); + kfree((struct dma_desc *)KSEG0ADDR(lp->td_ring)); unregister_netdev(bif->dev); free_netdev(bif->dev); -- 2.25.1