aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_user.c
diff options
context:
space:
mode:
authorJianbo Liu <[email protected]>2024-07-08 06:58:11 +0000
committerSteffen Klassert <[email protected]>2024-07-08 11:24:13 +0000
commit9199b915e9fad7f5eff6160d24ff6b38e970107d (patch)
treead870605ff73fd7616c4f8915b2ed0cd6c99dd0e /net/xfrm/xfrm_user.c
parentxfrm: Export symbol xfrm_dev_state_delete. (diff)
downloadkernel-9199b915e9fad7f5eff6160d24ff6b38e970107d.tar.gz
kernel-9199b915e9fad7f5eff6160d24ff6b38e970107d.zip
xfrm: fix netdev reference count imbalance
In cited commit, netdev_tracker_alloc() is called for the newly allocated xfrm state, but dev_hold() is missed, which causes netdev reference count imbalance, because netdev_put() is called when the state is freed in xfrm_dev_state_free(). Fix the issue by replacing netdev_tracker_alloc() with netdev_hold(). Fixes: f8a70afafc17 ("xfrm: add TX datapath support for IPsec packet offload mode") Signed-off-by: Jianbo Liu <[email protected]> Reviewed-by: Cosmin Ratiu <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'net/xfrm/xfrm_user.c')
0 files changed, 0 insertions, 0 deletions