Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net_sched: unify the init logic for act_police
Jamal reported a crash when we create a police action with a specific index, this is because the init logic is not correct, we should always create one for this case. Just unify the logic with other tc actions. Fixes: a03e6fe ("act_police: fix a crash during removal") Reported-by: Jamal Hadi Salim <[email protected]> Signed-off-by: Cong Wang <[email protected]> Acked-by: Jamal Hadi Salim <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information