From: Vlad Buslov <[email protected]>
Date: Sun, 21 Jul 2019 17:44:12 +0300
> In function int tc_new_tfilter() q pointer can be NULL when adding filter
> on a shared block. With recent change that resets TCQ_F_CAN_BYPASS after
> filter creation, following NULL pointer dereference happens in case parent
> block is shared:
...
> Verify that q pointer is not NULL before setting the 'flags' field.
>
> Fixes: 3f05e6886a59 ("net_sched: unset TCQ_F_CAN_BYPASS when adding filters")
> Signed-off-by: Vlad Buslov <[email protected]>
Applied.