]> git.baikalelectronics.ru Git - kernel.git/commit
net: lan78xx: Bail out if lan78xx_get_endpoints fails
authorStefan Wahren <stefan.wahren@i2se.com>
Tue, 4 Sep 2018 17:29:09 +0000 (19:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Sep 2018 05:20:45 +0000 (22:20 -0700)
commitc280fe05d2afa3a95dba2fd82effc11b14dfd629
tree17e8c5a644ffd71a684f6c614184b2e090d4c3da
parent6a66367f143fa3daf14fba7ea5b7ec824a5f6cfd
net: lan78xx: Bail out if lan78xx_get_endpoints fails

We need to bail out if lan78xx_get_endpoints() fails, otherwise the
result is overwritten.

Fixes: 1b266e200e31 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet")
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Raghuram Chary Jallipalli <raghuramchary.jallipalli@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c