qcacmn: Fix Spectral KW issues

Add null pointer checks in Spectral component

Change-Id: I42eb678f2d90d38c3c8afee8c010970783e66f52
CRs-Fixed: 2206406
This commit is contained in:
Shiva Krishna Pittala 2018-03-15 17:21:00 +05:30 • committed by nshrivas
commit d75cdc199e

View file

@ -176,8 +176,10 @@ wlan_register_wmi_spectral_cmd_ops(struct wlan_objmgr_pdev *pdev,
{
struct spectral_context *sc;
if (!pdev)
if (!pdev) {
spectral_err("PDEV is NULL!");
return;
}
sc = spectral_get_spectral_ctx_from_pdev(pdev);
if (!sc) {