Commit 9899184
amt: do not use amt->nr_tunnels outside of lock
amt->nr_tunnels is protected by amt->lock.
But, amt_request_handler() has been using this variable without the
amt->lock.
So, it expands context of amt->lock in the amt_request_handler() to
protect amt->nr_tunnels variable.
Fixes: cbc21dc ("amt: add data plane of amt interface")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent e882827 commit 9899184
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2679 | 2679 | | |
2680 | 2680 | | |
2681 | 2681 | | |
| 2682 | + | |
2682 | 2683 | | |
| 2684 | + | |
2683 | 2685 | | |
2684 | 2686 | | |
2685 | 2687 | | |
2686 | 2688 | | |
2687 | 2689 | | |
2688 | 2690 | | |
2689 | 2691 | | |
2690 | | - | |
| 2692 | + | |
| 2693 | + | |
2691 | 2694 | | |
| 2695 | + | |
2692 | 2696 | | |
2693 | 2697 | | |
2694 | 2698 | | |
| |||
2701 | 2705 | | |
2702 | 2706 | | |
2703 | 2707 | | |
2704 | | - | |
2705 | 2708 | | |
2706 | 2709 | | |
2707 | | - | |
| 2710 | + | |
2708 | 2711 | | |
2709 | 2712 | | |
2710 | 2713 | | |
| |||
0 commit comments