Add null pointer checks in Spectral component Change-Id: I42eb678f2d90d38c3c8afee8c010970783e66f52 CRs-Fixed: 2206406
@@ -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) {