qcacmn: Replace correct pointer to check NULL

To fix coding error which find by static analysis.

Change-Id: I46017721945aef60def49a8e90ffb2da1dfaf5e6
CRs-Fixed: 3642679
Esse commit está contido em:
Will Huang
2023-10-17 16:36:07 +05:30
commit de Ravindra Konda
commit 6dc43655d9

Ver arquivo

@@ -864,7 +864,7 @@ static struct afc_resp_extracted *extract_afc_resp(struct nlattr **attr)
if (attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA]) {
nl = attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA];
afc_rsp->json_data = qdf_mem_malloc(nla_len(nl));
if (!afc_rsp)
if (!afc_rsp->json_data)
goto fail;
afc_rsp->json_len = nla_len(nl);