qcacld-3.0: Check for NULL pointer

Check for NULL pointer before accessing.

Change-Id: I7916a475be98cb63cc8569f8eba022d5b49f5c10
CRs-Fixed: 2669232
This commit is contained in:
Rachit Kankane
2020-04-29 11:05:48 +05:30
committed by nshrivas
父節點 5f8eb0fa98
當前提交 51b1051f5f

查看文件

@@ -3149,6 +3149,9 @@ static bool hdd_is_cac_in_progress(void)
{
struct hdd_context *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
if (!hdd_ctx)
return false;
return (hdd_ctx->dev_dfs_cac_status == DFS_CAC_IN_PROGRESS);
}