diff options
Diffstat (limited to 'net/ipv4/ipcomp.c')
| -rw-r--r-- | net/ipv4/ipcomp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/ipcomp.c b/net/ipv4/ipcomp.c index dcb7ee6c4858..fc718df17b40 100644 --- a/net/ipv4/ipcomp.c +++ b/net/ipv4/ipcomp.c | |||
| @@ -345,8 +345,7 @@ static void ipcomp_free_tfms(struct crypto_tfm **tfms) | |||
| 345 | 345 | ||
| 346 | for_each_cpu(cpu) { | 346 | for_each_cpu(cpu) { |
| 347 | struct crypto_tfm *tfm = *per_cpu_ptr(tfms, cpu); | 347 | struct crypto_tfm *tfm = *per_cpu_ptr(tfms, cpu); |
| 348 | if (tfm) | 348 | crypto_free_tfm(tfm); |
| 349 | crypto_free_tfm(tfm); | ||
| 350 | } | 349 | } |
| 351 | free_percpu(tfms); | 350 | free_percpu(tfms); |
| 352 | } | 351 | } |
