Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp167325pxx; Wed, 28 Oct 2020 01:22:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzosRTEVQa+sHgB58SiwPVFvF9YWBNg0fo+j0fAB7mnW1RT6eDjLvN1PVpGbwwdYrUzEXJu X-Received: by 2002:a17:906:4059:: with SMTP id y25mr6112884ejj.418.1603873354630; Wed, 28 Oct 2020 01:22:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603873354; cv=none; d=google.com; s=arc-20160816; b=a5ymLBkmF08UOacPKANL8Nx+w0Js9WBHobbaKTE3IPgt/wlmQS0wK2BM1Dur22Hlv/ ijPZpjt0y7At7PermS3q85nSykAr99Y/XcgTLeKstks9I0hRQk0L6Cmz8bJTqBqpQl/4 qyivXJjecf1JodD/Vn/i93Hel0qdtXKoGa5mnQlolTIdEZZlaQqbVdKEPxR9LFzQQXgT 124UjsJWIQZh3pSwmO2kZuYRb7s+S7jC8jLronWn04zobiL7BzD6FttLMCRqxUBjpH26 AL+sfwZrDagcoXAUKYnCcHSjljvNW8ePTOql97LsfCR6sDxbf/zHKwNtExn+1Uv1ya/z UfvQ== 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=K9210qgvhLbeX6XEeRvG8BpSM5qtyZjIxJYX4zhM/rQ=; b=Ix5MDIuWZuwukdIvSg3D31awtUKmq0K0qM3M9tcRMbZBBCYBfzVFksYTImPst+Ol6j h0UxccvoYccDxDN/x7sAGuSgZghFP0JisVNr+XVvS3Gb6/P27Yfq3ITZel3DMTtZ2b3U eczSJQQrR6Oxblhr9sctzXvzwNxTpiTyD3017TpxqYoHaKeLs8wU/FRy5GqVyEDhkmbW ILrjRzr84VG0MFaSWjJBEBHYiRnIZK3ORAAA2Qoii3c20cGooab4CJ/UA1IDYEqm7Lg7 0WPIbPpox/NiNzgHUiHPSVKTA9vrhSU/M4ViYkHNZdodJmKUIFfUmDq7HRLc8MFSaTRy QadA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XpyKXKBJ; 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 jr1si3058858ejb.164.2020.10.28.01.22.12; Wed, 28 Oct 2020 01:22:34 -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=XpyKXKBJ; 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 S1753662AbgJ0OCM (ORCPT + 99 others); Tue, 27 Oct 2020 10:02:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:49070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2411651AbgJ0OBY (ORCPT ); Tue, 27 Oct 2020 10:01:24 -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 F3EE722202; Tue, 27 Oct 2020 14:01:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807283; bh=eNqI4I4kiQ1KvcRJ+NmcfrVoNL3GnkpktsSWrFMNXgo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XpyKXKBJF99gg66jZ5peiS31+pnvARoNdymy+z+6RHdKjvCc65WK7/ja7kN5XOEEj fKQxCrMn67T89UMqL1vx8qIwjBNq7NcrMHQvy4ZLDlKtncuhrVbtjiZfAI2eRj1qJN iZchbb0L4Zf9cFGZXNQ6G8Arzq4gDPbI8o+owDfs= 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 4.4 110/112] net: korina: cast KSEG0 address to pointer in kfree Date: Tue, 27 Oct 2020 14:50:20 +0100 Message-Id: <20201027134905.753733650@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134900.532249571@linuxfoundation.org> References: <20201027134900.532249571@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 3954c80f70fcb..b491de946a0e6 100644 --- a/drivers/net/ethernet/korina.c +++ b/drivers/net/ethernet/korina.c @@ -1188,7 +1188,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: @@ -1208,7 +1208,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