|
@@ -491,10 +491,8 @@ static int fq_codel_init(struct Qdisc *sch, struct nlattr *opt)
|
|
if (!q->flows)
|
|
if (!q->flows)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
q->backlogs = kvzalloc(q->flows_cnt * sizeof(u32), GFP_KERNEL);
|
|
q->backlogs = kvzalloc(q->flows_cnt * sizeof(u32), GFP_KERNEL);
|
|
- if (!q->backlogs) {
|
|
|
|
- kvfree(q->flows);
|
|
|
|
|
|
+ if (!q->backlogs)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
- }
|
|
|
|
for (i = 0; i < q->flows_cnt; i++) {
|
|
for (i = 0; i < q->flows_cnt; i++) {
|
|
struct fq_codel_flow *flow = q->flows + i;
|
|
struct fq_codel_flow *flow = q->flows + i;
|
|
|
|
|