diff options
| author | Sabrina Dubroca <sd@queasysnail.net> | 2026-03-09 11:32:39 +0100 |
|---|---|---|
| committer | Steffen Klassert <steffen.klassert@secunet.com> | 2026-03-12 07:15:38 +0100 |
| commit | 05b8673963c492fe36533e99a4a3c6661ca09ed0 (patch) | |
| tree | 83ccb3fed24b7e2570c9e1cbcb29b0a1caf1d962 /tools/lib/python | |
| parent | f468fdd52b97a63c4fb916fb882b936d8b43b8ae (diff) | |
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 <sd@queasysnail.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
