Repository navigation
Commit bd16a6c
net_sched: sfq: fix mem alloc error recovery
Since commit 817fb15 (net_sched: sfq: allow divisor to be a
parameter), we can leave perturbation timer armed if a memory allocation
error aborts sfq_init().
Memory containing active struct timer_list is freed and kernel can
crash.
Call sfq_destroy() from sfq_init() to properly dismantle qdisc.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 6cfb5e7 commit bd16a6c
1 file changed
Lines changed: 33 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
547 | 576 | | |
548 | 577 | | |
549 | 578 | | |
550 | | - | |
551 | 579 | | |
552 | 580 | | |
553 | 581 | | |
| |||
574 | 602 | | |
575 | 603 | | |
576 | 604 | | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
582 | 608 | | |
| 609 | + | |
583 | 610 | | |
584 | 611 | | |
585 | 612 | | |
| |||
594 | 621 | | |
595 | 622 | | |
596 | 623 | | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | 624 | | |
611 | 625 | | |
612 | 626 | | |
| |||
0 commit comments