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
15521552 int (*func)(struct xfrm_state *, int, void*), void *);
15531553 void xfrm_state_walk_done(struct xfrm_state_walk *walk, struct net *net);
15541554 struct xfrm_state *xfrm_state_alloc(struct net *net);
1555+void xfrm_state_free(struct xfrm_state *x);
15551556 struct xfrm_state *xfrm_state_find(const xfrm_address_t *daddr,
15561557 const xfrm_address_t *saddr,
15571558 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