mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
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:
parent
9911b44343
commit
b276eea5e7
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue