projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dc20a6
)
rocker: NULL port if port probe fails
author
Scott Feldman
<sfeldma@gmail.com>
Tue, 4 Aug 2015 05:31:17 +0000
(22:31 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 7 Aug 2015 04:47:57 +0000
(21:47 -0700)
Set port to NULL if port probe fails so we don't try to remove partially
initialized port on port probe err cleanup path.
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/rocker/rocker.c
b/drivers/net/ethernet/rocker/rocker.c
index 4cd5a71ad45e577d8cc4fb68c6b0c6d3d20e9b28..5309d1fd8eb3a615e49760849e36534a61640a43 100644
(file)
--- a/
drivers/net/ethernet/rocker/rocker.c
+++ b/
drivers/net/ethernet/rocker/rocker.c
@@
-5008,6
+5008,7
@@
err_untagged_vlan:
rocker_port_ig_tbl(rocker_port, SWITCHDEV_TRANS_NONE,
ROCKER_OP_FLAG_REMOVE);
err_port_ig_tbl:
+ rocker->ports[port_number] = NULL;
unregister_netdev(dev);
err_register_netdev:
free_netdev(dev);