exynos-linux-stable/drivers/net/ethernet/3com
Thomas Preisner c46e90ba86 net: 3com: typhoon: typhoon_init_one: fix incorrect return values
[ Upstream commit 107fded7bf616ad6f46823d98b8ed6405d7adf2d ]

In a few cases the err-variable is not set to a negative error code if a
function call in typhoon_init_one() fails and thus 0 is returned
instead.
It may be better to set err to the appropriate negative error
code before returning.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188841

Reported-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Thomas Preisner <thomas.preisner+linux@fau.de>
Signed-off-by: Milan Stephan <milan.stephan+linux@fau.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-30 08:39:11 +00:00
..
3c59x.c 3c59x: use IS_ENABLED() instead of checking for built-in or module 2016-09-12 20:27:57 -07:00
3c509.c treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
3c515.c treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
3c574_cs.c treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
3c589_cs.c treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
Kconfig drivers/net: remove all references to obsolete Ethernet-HOWTO 2015-06-23 06:50:35 -07:00
Makefile drivers/net: delete old 8bit ISA 3c501 driver. 2013-01-22 10:39:49 -05:00
typhoon.c net: 3com: typhoon: typhoon_init_one: fix incorrect return values 2017-11-30 08:39:11 +00:00
typhoon.h