Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tc: Fix using uninitialized id chain.
tc_make_tcf_id() doesn't initialize the 'chain' field leaving it with a random value from the stack. This makes request_from_tcf_id() create request with random TCA_CHAIN included. These requests are obviously doesn't work as needed leading to broken flow dump and various other issues. Fix that by using designated initializer instead. Fixes: acdd544 ("tc: Introduce tcf_id to specify a tc filter") Signed-off-by: Ilya Maximets <[email protected]> Acked-by: Roi Dayan <[email protected]> Signed-off-by: Simon Horman <[email protected]>
- Loading branch information