aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched/sch_hhf.c')
-rw-r--r--net/sched/sch_hhf.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/sched/sch_hhf.c b/net/sched/sch_hhf.c
index 13d6f83ec491..45d4b2f22f62 100644
--- a/net/sched/sch_hhf.c
+++ b/net/sched/sch_hhf.c
@@ -636,7 +636,9 @@ static int hhf_init(struct Qdisc *sch, struct nlattr *opt)
636 q->hhf_arrays[i] = hhf_zalloc(HHF_ARRAYS_LEN * 636 q->hhf_arrays[i] = hhf_zalloc(HHF_ARRAYS_LEN *
637 sizeof(u32)); 637 sizeof(u32));
638 if (!q->hhf_arrays[i]) { 638 if (!q->hhf_arrays[i]) {
639 hhf_destroy(sch); 639 /* Note: hhf_destroy() will be called
640 * by our caller.
641 */
640 return -ENOMEM; 642 return -ENOMEM;
641 } 643 }
642 } 644 }
@@ -647,7 +649,9 @@ static int hhf_init(struct Qdisc *sch, struct nlattr *opt)
647 q->hhf_valid_bits[i] = hhf_zalloc(HHF_ARRAYS_LEN / 649 q->hhf_valid_bits[i] = hhf_zalloc(HHF_ARRAYS_LEN /
648 BITS_PER_BYTE); 650 BITS_PER_BYTE);
649 if (!q->hhf_valid_bits[i]) { 651 if (!q->hhf_valid_bits[i]) {
650 hhf_destroy(sch); 652 /* Note: hhf_destroy() will be called
653 * by our caller.
654 */
651 return -ENOMEM; 655 return -ENOMEM;
652 } 656 }
653 } 657 }