diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2016-12-18 19:05:45 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-12-18 19:05:45 -0800 |
| commit | 5b4ccaf3b26ffe6f1d5e49c0659f4ffb019c5dde (patch) | |
| tree | b43b9df2b2d78c22c29da158eafdb58e7174b504 | |
| parent | e6bcffb8e36b478a0ac8f04af649f13976fc0f24 (diff) | |
| parent | 0f9832373e51fa2062e9eb16c753afffbc69ace2 (diff) | |
Merge "qcacld-3.0: Add NULL check in hdd shutdown API"
| -rw-r--r-- | core/hdd/src/wlan_hdd_driver_ops.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_driver_ops.c b/core/hdd/src/wlan_hdd_driver_ops.c index 31f18b1ef15b..a3686133c6c7 100644 --- a/core/hdd/src/wlan_hdd_driver_ops.c +++ b/core/hdd/src/wlan_hdd_driver_ops.c @@ -436,6 +436,11 @@ static void wlan_hdd_shutdown(void) { void *hif_ctx = cds_get_context(QDF_MODULE_ID_HIF); + if (NULL == hif_ctx) { + hdd_err("HIF context NULL"); + return; + } + if (cds_is_load_or_unload_in_progress()) { hdd_err("Load/unload in progress, ignore SSR shutdown"); return; |
