cnss2: Clear host driver ops if register driver gets killed

Avoid any host driver ops access after register driver gets killed
by marking it as NULL.

Change-Id: Idd268d5d8d31569c4272fde566866c4d79bc1cad
Signed-off-by: Yue Ma <yuem@codeaurora.org>
This commit is contained in:
Yue Ma 2020-04-24 15:01:30 -07:00 • committed by Gerrit - the friendly Code Review server
commit 95d28c8aec

View file

@ -2157,6 +2157,7 @@ register_driver:
if (ret == -EINTR) {
cnss_pr_dbg("Register driver work is killed\n");
del_timer(&plat_priv->fw_boot_timer);
pci_priv->driver_ops = NULL;
}
return ret;