From: Lorenzo Bianconi <lorenzo.bianc...@redhat.com> Date: Thu, 4 Apr 2019 12:16:27 +0200
> When a bpf program is uploaded, the driver computes the number of > xdp tx queues resulting in the allocation of additional qsets. > Starting from commit '2ecbe4f4a027 ("net: thunderx: replace global > nicvf_rx_mode_wq work queue for all VFs to private for each of them")' > the driver runs link state polling for each VF resulting in the > following NULL pointer dereference: ... > Fix it by checking nicvf_rx_mode_wq pointer in nicvf_open and nicvf_stop > > Fixes: 2ecbe4f4a027 ("net: thunderx: replace global nicvf_rx_mode_wq work > queue for all VFs to private for each of them") > Fixes: 2c632ad8bc74 ("net: thunderx: move link state polling function to VF") > Reported-by: Matteo Croce <mcr...@redhat.com> > Signed-off-by: Lorenzo Bianconi <lorenzo.bianc...@redhat.com> Applied and queued up for -stable.