act_pedit.c (b409074e6693bcdaa7abbee2a035f22a9eabda53) act_pedit.c (4e8ddd7f1758ca4ddd0c1f7cf3e66fce736241d2)
1/*
2 * net/sched/act_pedit.c Generic packet editor
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

--- 180 unchanged lines hidden (view full) ---

189 tcf_idr_release(*a, bind);
190 ret = -ENOMEM;
191 goto out_free;
192 }
193 ret = ACT_P_CREATED;
194 } else {
195 if (bind)
196 goto out_free;
1/*
2 * net/sched/act_pedit.c Generic packet editor
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

--- 180 unchanged lines hidden (view full) ---

189 tcf_idr_release(*a, bind);
190 ret = -ENOMEM;
191 goto out_free;
192 }
193 ret = ACT_P_CREATED;
194 } else {
195 if (bind)
196 goto out_free;
197 tcf_idr_release(*a, bind);
198 if (!ovr) {
197 if (!ovr) {
198 tcf_idr_release(*a, bind);
199 ret = -EEXIST;
200 goto out_free;
201 }
202 p = to_pedit(*a);
203 if (p->tcfp_nkeys && p->tcfp_nkeys != parm->nkeys) {
204 keys = kmalloc(ksize, GFP_KERNEL);
205 if (!keys) {
206 ret = -ENOMEM;

--- 307 unchanged lines hidden ---
199 ret = -EEXIST;
200 goto out_free;
201 }
202 p = to_pedit(*a);
203 if (p->tcfp_nkeys && p->tcfp_nkeys != parm->nkeys) {
204 keys = kmalloc(ksize, GFP_KERNEL);
205 if (!keys) {
206 ret = -ENOMEM;

--- 307 unchanged lines hidden ---