wil6210: properly initialize discovery_expired_work
authorDedy Lansky <dlansky@codeaurora.org>
Tue, 10 Sep 2019 13:46:34 +0000 (16:46 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 12 Sep 2019 15:07:14 +0000 (18:07 +0300)
commit068f359aac40dee8e31ed305f305e87aadb1aaa2
tree26e456e47d4879c18245ba3786cf39fb025f1dc1
parente78975fcdae463fc2af21f944e90f305a922cbd5
wil6210: properly initialize discovery_expired_work

Upon driver rmmod, cancel_work_sync() can be invoked on
p2p.discovery_expired_work before this work struct was initialized.
This causes a WARN_ON with newer kernel version.

Add initialization of discovery_expired_work inside wil_vif_init().

Signed-off-by: Dedy Lansky <dlansky@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/netdev.c