qcacmn: Fix null pointer dereference in send_packetdump
netbuf in send_packetdump is never checked for null before dereferencing it for len netbuf->len. Change-Id: I51aa0fb9c52e04c33291791ef47def703754222d CRs-Fixed: 2404844
This commit is contained in:

committed by
nshrivas

parent
9911b44343
commit
b276eea5e7
@@ -1346,6 +1346,11 @@ static void send_packetdump(qdf_nbuf_t netbuf, uint8_t status,
|
||||
struct hdd_context *hdd_ctx;
|
||||
struct hdd_adapter *adapter;
|
||||
|
||||
if (!netbuf) {
|
||||
pr_err("%s: Invalid netbuf.\n", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
hdd_ctx = (struct hdd_context *)cds_get_context(QDF_MODULE_ID_HDD);
|
||||
if (!hdd_ctx)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user