History

xfrm_user: fix freeing of xfrm states on acquire

Commit 565f0fa902b6 ("xfrm: use a dedicated slab cache for struct xfrm_state") moved xfrm state objects to use their own slab cache. However, it missed to adapt xfrm_user to use this new cache when freeing xfrm states. Fix this by introducing and make use of a new helper for freeing xfrm_state objects.

Mathias Krause committed 7 years ago

Commit 4a135e51 parent 0152eee3 files · +10 −3Browse files

Showing the changes to include/net (1 of 3 files). Show all

Unified · Split

include/net/xfrm.h+1−0
@@ -1552,6 +1552,7 @@ int xfrm_state_walk(struct net *net, struct xfrm_state_walk *walk, · 1551 unmodified lines
1552 int (*func)(struct xfrm_state *, int, void*), void *);1552 int (*func)(struct xfrm_state *, int, void*), void *);
1553void xfrm_state_walk_done(struct xfrm_state_walk *walk, struct net *net);1553void xfrm_state_walk_done(struct xfrm_state_walk *walk, struct net *net);
1554struct xfrm_state *xfrm_state_alloc(struct net *net);1554struct xfrm_state *xfrm_state_alloc(struct net *net);
1555void xfrm_state_free(struct xfrm_state *x);
1555struct xfrm_state *xfrm_state_find(const xfrm_address_t *daddr,1556struct xfrm_state *xfrm_state_find(const xfrm_address_t *daddr,
1556 const xfrm_address_t *saddr,1557 const xfrm_address_t *saddr,
1557 const struct flowi *fl,1558 const struct flowi *fl,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t