Commit 7d2fc41
xfrm: call xdo_dev_state_delete during state update
When we update an SA, we construct a new state and call
xdo_dev_state_add, but never insert it. The existing state is updated,
then we immediately destroy the new state. Since we haven't added it,
we don't go through the standard state delete code, and we're skipping
removing it from the device (but xdo_dev_state_free will get called
when we destroy the temporary state).
This is similar to commit c5d4d7d ("xfrm: Fix deletion of
offloaded SAs on failure.").
Fixes: d77e38e ("xfrm: Add an IPsec hardware offloading API")
Signed-off-by: Sabrina Dubroca <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>1 parent b57defc commit 7d2fc41
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2264 | 2264 | | |
2265 | 2265 | | |
2266 | 2266 | | |
| 2267 | + | |
2267 | 2268 | | |
2268 | 2269 | | |
2269 | 2270 | | |
| |||
0 commit comments