]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Fri, 30 Oct 2020 09:38:32 +0000 (10:38 +0100)
commitd96332f3f6cbf535b7ea7a6816b05c6a7b0a2431
tree806bf7662c2383268e994057ef05a278f3ecc9b9
parentf34426b44d24f4624e49dc122526f603afc85973
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