commit | cecd6e510c65b25c9a3fcc09480f561189a7c3b8 | [log] [tgz] |
---|---|---|
author | Iyappan Subramanian <isubramanian@apm.com> | Fri Aug 12 22:05:40 2016 -0700 |
committer | David S. Miller <davem@davemloft.net> | Sat Aug 13 11:48:52 2016 -0700 |
tree | 00a13d7a33325acf7dd3d03fe7cf869d9c650ccf | |
parent | 15e32296e44738e6c8dff56c46fd18e9b4c9b6f6 [diff] |
drivers: net: xgene: Fix error deconstruction path Since register_netdev() call in xgene_enet_probe() was moved down to the end, it doesn't properly handle errors that may occur, by deconstructing everything that was setup before the error occurred. Signed-off-by: Iyappan Subramanian <isubramanian@apm.com> Signed-off-by: David S. Miller <davem@davemloft.net>