]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2019 21:15:31 +0000 (14:15 -0700)
commit888b208a6f7ef2eaca9e3c918f55a269eea9548f
tree0be444946d219364420a89a6b53b62be78a38774
parent1faeeda5611b78570a5f06c273fbbaf19d2eb3b8
amd-xgbe: Fix error path in xgbe_mod_init()

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

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: e15064bb4cc1 ("amd-xgbe: Add support to handle device renaming")
Fixes: 5cd474a27ba1 ("amd-xgbe: Add PCI device support")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-main.c