Commit 05b8673
xfrm: state: silence sparse warnings during netns exit
Silence sparse warnings in xfrm_state_fini:
net/xfrm/xfrm_state.c:3327:9: warning: incorrect type in argument 1 (different address spaces)
net/xfrm/xfrm_state.c:3327:9: expected struct hlist_head const *h
net/xfrm/xfrm_state.c:3327:9: got struct hlist_head [noderef] __rcu *state_byseq
Add xfrm_state_deref_netexit() to wrap those calls. The netns is going
away, we don't have to worry about the state_by* pointers being
changed behind our backs.
Signed-off-by: Sabrina Dubroca <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>1 parent f468fdd commit 05b8673
1 file changed
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3316 | 3316 | | |
3317 | 3317 | | |
3318 | 3318 | | |
| 3319 | + | |
| 3320 | + | |
3319 | 3321 | | |
3320 | 3322 | | |
3321 | 3323 | | |
| |||
3328 | 3330 | | |
3329 | 3331 | | |
3330 | 3332 | | |
3331 | | - | |
3332 | | - | |
3333 | | - | |
3334 | | - | |
| 3333 | + | |
| 3334 | + | |
| 3335 | + | |
| 3336 | + | |
3335 | 3337 | | |
3336 | 3338 | | |
3337 | 3339 | | |
3338 | | - | |
3339 | | - | |
3340 | | - | |
3341 | | - | |
| 3340 | + | |
| 3341 | + | |
| 3342 | + | |
| 3343 | + | |
3342 | 3344 | | |
3343 | 3345 | | |
3344 | 3346 | | |
| |||
0 commit comments