net: korina: cast KSEG0 address to pointer in kfree
authorValentin Vidic <vvidic@valentin-vidic.from.hr>
Sun, 18 Oct 2020 18:42:55 +0000 (20:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 08:05:46 +0000 (09:05 +0100)
commit6850d74f2a9fabbacf80bc3ecc0eae7b7f04a58b
tree06a36250150d4d4485217ba30af2a80e28d09988
parentf259b6e90966004a285243e7c73ac253507e9a77
net: korina: cast KSEG0 address to pointer in kfree

[ 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 <lkp@intel.com>
Signed-off-by: Valentin Vidic <vvidic@valentin-vidic.from.hr>
Link: https://lore.kernel.org/r/20201018184255.28989-1-vvidic@valentin-vidic.from.hr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/korina.c