We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3198ae7 commit 94edec4Copy full SHA for 94edec4
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c
@@ -708,7 +708,8 @@ static int mlx5e_xfrm_add_state(struct xfrm_state *x,
708
release_dwork:
709
kfree(sa_entry->dwork);
710
release_work:
711
- kfree(sa_entry->work->data);
+ if (sa_entry->work)
712
+ kfree(sa_entry->work->data);
713
kfree(sa_entry->work);
714
err_xfrm:
715
kfree(sa_entry);
@@ -752,7 +753,8 @@ static void mlx5e_xfrm_free_state(struct xfrm_state *x)
752
753
mlx5e_accel_ipsec_fs_del_rule(sa_entry);
754
mlx5_ipsec_free_sa_ctx(sa_entry);
755
756
757
758
759
sa_entry_free:
760
0 commit comments