Files
linux/net
Jianbo Liu 0c92f09017 xfrm: fix netdev reference count imbalance
[ Upstream commit 9199b915e9fad7f5eff6160d24ff6b38e970107d ]

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: f8a70afafc ("xfrm: add TX datapath support for IPsec packet offload mode")
Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-03 08:53:41 +02:00
..
2024-07-25 09:50:57 +02:00
2023-05-31 13:06:57 +02:00
2024-07-18 13:21:13 +02:00
2024-08-03 08:53:37 +02:00
2024-08-03 08:53:37 +02:00
2024-05-17 12:02:02 +02:00
2024-06-12 11:12:12 +02:00