Commit 80a9fad
ucc_geth: fix module removal
- uccf should be set to NULL to not double-free memory on
subsequent calls;
- ind_hash_q and group_hash_q lists should be initialized in the
probe() function, instead of struct_init() (called by open()),
otherwise there will be an oops if ucc_geth_driver removed
prior 'ifconfig ethX up';
- add unregister_netdev();
- reorder geth_remove() steps.
Signed-off-by: Anton Vorontsov <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent f67c627 commit 80a9fad
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2084 | 2084 | | |
2085 | 2085 | | |
2086 | 2086 | | |
2087 | | - | |
| 2087 | + | |
2088 | 2088 | | |
| 2089 | + | |
| 2090 | + | |
2089 | 2091 | | |
2090 | 2092 | | |
2091 | 2093 | | |
| |||
2305 | 2307 | | |
2306 | 2308 | | |
2307 | 2309 | | |
2308 | | - | |
2309 | | - | |
2310 | | - | |
2311 | | - | |
2312 | 2310 | | |
2313 | 2311 | | |
2314 | 2312 | | |
| |||
3990 | 3988 | | |
3991 | 3989 | | |
3992 | 3990 | | |
| 3991 | + | |
| 3992 | + | |
| 3993 | + | |
| 3994 | + | |
3993 | 3995 | | |
3994 | 3996 | | |
3995 | 3997 | | |
| |||
4040 | 4042 | | |
4041 | 4043 | | |
4042 | 4044 | | |
4043 | | - | |
4044 | | - | |
| 4045 | + | |
4045 | 4046 | | |
| 4047 | + | |
| 4048 | + | |
4046 | 4049 | | |
4047 | 4050 | | |
4048 | 4051 | | |
| |||
0 commit comments