]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
amd-xgbe: Fix error path in xgbe_mod_init()
authorYueHaibing <yuehaibing@huawei.com>
Thu, 29 Aug 2019 02:46:00 +0000 (10:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Sep 2019 05:15:41 +0000 (07:15 +0200)
commitee8e82fdbed328fb3a6c9bc19ac36795770906a8
treef5f247f7d04e63d504d3a0c8d1ac6e4515fb8612
parentc607026c28f1de0b2523022b0be4eb20a6554114
amd-xgbe: Fix error path in xgbe_mod_init()

[ Upstream commit b6b4dc4c1fa7f1c99398e7dc85758049645e9588 ]

In xgbe_mod_init(), we should do cleanup if some error occurs

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: efbaa828330a ("amd-xgbe: Add support to handle device renaming")
Fixes: 47f164deab22 ("amd-xgbe: Add PCI device support")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/amd/xgbe/xgbe-main.c