aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/ah4.c2
-rw-r--r--net/ipv6/ah6.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/net/ipv4/ah4.c b/net/ipv4/ah4.c
index 3f205181712d..992ecd8662e2 100644
--- a/net/ipv4/ah4.c
+++ b/net/ipv4/ah4.c
@@ -293,9 +293,7 @@ static void ah_destroy(struct xfrm_state *x)
293 return; 293 return;
294 294
295 kfree(ahp->work_icv); 295 kfree(ahp->work_icv);
296 ahp->work_icv = NULL;
297 crypto_free_hash(ahp->tfm); 296 crypto_free_hash(ahp->tfm);
298 ahp->tfm = NULL;
299 kfree(ahp); 297 kfree(ahp);
300} 298}
301 299
diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c
index 7a8a01369e5c..13e330d89178 100644
--- a/net/ipv6/ah6.c
+++ b/net/ipv6/ah6.c
@@ -509,9 +509,7 @@ static void ah6_destroy(struct xfrm_state *x)
509 return; 509 return;
510 510
511 kfree(ahp->work_icv); 511 kfree(ahp->work_icv);
512 ahp->work_icv = NULL;
513 crypto_free_hash(ahp->tfm); 512 crypto_free_hash(ahp->tfm);
514 ahp->tfm = NULL;
515 kfree(ahp); 513 kfree(ahp);
516} 514}
517 515