Lines Matching refs:krepl
2907 struct ipt_replace *krepl; in do_netfilter_replace() local
2922 kreplsize = sizeof(*krepl) + origsize; in do_netfilter_replace()
2923 kcountersize = krepl->num_counters * sizeof(struct ipt_counters); in do_netfilter_replace()
2929 krepl = (struct ipt_replace *)vmalloc(kreplsize); in do_netfilter_replace()
2930 if (krepl == NULL) in do_netfilter_replace()
2933 if (copy_from_user(krepl, optval, kreplsize)) { in do_netfilter_replace()
2934 vfree(krepl); in do_netfilter_replace()
2939 ((struct ipt_replace32 *)krepl)->counters); in do_netfilter_replace()
2941 kcountersize = krepl->num_counters * sizeof(struct ipt_counters); in do_netfilter_replace()
2942 krepl->counters = (struct ipt_counters *)vmalloc(kcountersize); in do_netfilter_replace()
2943 if (krepl->counters == NULL) { in do_netfilter_replace()
2944 vfree(krepl); in do_netfilter_replace()
2951 (char *)krepl, kreplsize); in do_netfilter_replace()
2955 copy_to_user(counters32, krepl->counters, kcountersize)) in do_netfilter_replace()
2958 vfree(krepl->counters); in do_netfilter_replace()
2959 vfree(krepl); in do_netfilter_replace()