]> git.itanic.dy.fi Git - linux-stable/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)
commitaba84871bd4f52c4dfcf3ad5d4501a6c9d2de90e
treefa51484fca3ec1fbeefb0da8f48644255b6e9e50
parentff9924897f8bfed82e61894b373ab9d2dfea5b10
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: 72b05b9940f0 ("pasemi_mac: RX/TX ring management cleanup")
Fixes: 8d636d8bc5ff ("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