X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fipv4%2Fipcomp.c;h=d64e2ec8da7b454f0bd6bc273c9b4fde707fcb9e;hb=489447380a2921ec0e9154f773c44ab3167ede4b;hp=dcb7ee6c4858c4395444b7cb83c9f29a73823091;hpb=826509f8110049663799bc20f2b5b6170e2f78ca;p=linux-2.6 diff --git a/net/ipv4/ipcomp.c b/net/ipv4/ipcomp.c index dcb7ee6c48..d64e2ec8da 100644 --- a/net/ipv4/ipcomp.c +++ b/net/ipv4/ipcomp.c @@ -28,6 +28,7 @@ #include #include #include +#include struct ipcomp_tfms { struct list_head list; @@ -345,8 +346,7 @@ static void ipcomp_free_tfms(struct crypto_tfm **tfms) for_each_cpu(cpu) { struct crypto_tfm *tfm = *per_cpu_ptr(tfms, cpu); - if (tfm) - crypto_free_tfm(tfm); + crypto_free_tfm(tfm); } free_percpu(tfms); }