]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/ipv4/ipcomp.c
[NETFILTER]: nf_nat: remove obsolete check for ICMP redirects
[mv-sheeva.git] / net / ipv4 / ipcomp.c
index b79cdbee68a98460edef55d6c957c0e9d66aef25..58b60b2fb01175fb4c02fb72598619dfb38df716 100644 (file)
@@ -108,8 +108,11 @@ static int ipcomp_compress(struct xfrm_state *x, struct sk_buff *skb)
        const int cpu = get_cpu();
        u8 *scratch = *per_cpu_ptr(ipcomp_scratches, cpu);
        struct crypto_comp *tfm = *per_cpu_ptr(ipcd->tfms, cpu);
-       int err = crypto_comp_compress(tfm, start, plen, scratch, &dlen);
+       int err;
 
+       local_bh_disable();
+       err = crypto_comp_compress(tfm, start, plen, scratch, &dlen);
+       local_bh_enable();
        if (err)
                goto out;
 
@@ -437,7 +440,7 @@ error:
        goto out;
 }
 
-static struct xfrm_type ipcomp_type = {
+static const struct xfrm_type ipcomp_type = {
        .description    = "IPCOMP4",
        .owner          = THIS_MODULE,
        .proto          = IPPROTO_COMP,