]> git.baikalelectronics.ru Git - kernel.git/commit
net: pasemi: fix error return code in pasemi_mac_open()
authorZhang Changzhong <zhangchangzhong@huawei.com>
Wed, 2 Dec 2020 09:57:15 +0000 (17:57 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Dec 2020 02:03:58 +0000 (18:03 -0800)
commit82997ac2359b564d592fc97d88e7c4610170f50c
treefa51484fca3ec1fbeefb0da8f48644255b6e9e50
parent02d4d0835fba03b13bd748dfc747fef95f91a967
net: pasemi: fix error return code in pasemi_mac_open()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 1b0fe99ecfef ("pasemi_mac: RX/TX ring management cleanup")
Fixes: 9f3a896b4277 ("pasemi_mac: jumbo frame support")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Link: https://lore.kernel.org/r/1606903035-1838-1-git-send-email-zhangchangzhong@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/pasemi/pasemi_mac.c