mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
qcacmn: Fix Spectral KW issues
Add null pointer checks in Spectral component Change-Id: I42eb678f2d90d38c3c8afee8c010970783e66f52 CRs-Fixed: 2206406
This commit is contained in:
parent
27d55ecd7d
commit
d75cdc199e
1 changed files with 3 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue