net: sctp, forbid negative length
[cascardo/linux.git] / net / ipv6 / exthdrs_offload.c
index 447a7fb..f5e2ba1 100644 (file)
@@ -36,6 +36,6 @@ out:
        return ret;
 
 out_rt:
-       inet_del_offload(&rthdr_offload, IPPROTO_ROUTING);
+       inet6_del_offload(&rthdr_offload, IPPROTO_ROUTING);
        goto out;
 }