xfrm: delete offloaded policy
authorLeon Romanovsky <leonro@nvidia.com>
Mon, 31 Jul 2023 11:38:26 +0000 (14:38 +0300)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 1 Aug 2023 10:04:43 +0000 (12:04 +0200)
commit982c3aca8bac8ae38acdc940e4f1ecec3bffc623
tree8da7cc956db5dc4257e0f68d8977ce8be0a81e44
parent5e2424708da7207087934c5c75211e8584d553a0
xfrm: delete offloaded policy

The policy memory was released but not HW driver data. Add
call to xfrm_dev_policy_delete(), so drivers will have a chance
to release their resources.

Fixes: 919e43fad516 ("xfrm: add an interface to offload policy")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_user.c