Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nrf_wifi: Fix null point dereference in driver raw tx path #1138

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions nrf_wifi/fw_if/umac_if/src/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1830,8 +1830,7 @@ enum nrf_wifi_status nrf_wifi_fmac_start_rawpkt_xmit(void *dev_ctx,
* return failure as network buffer and device
* context are NULL
*/
def_dev_ctx->raw_pkt_stats.raw_pkt_send_failure += 1;
return NRF_WIFI_STATUS_FAIL;
goto fail;
VivekUppunda marked this conversation as resolved.
Show resolved Hide resolved
}

fmac_dev_ctx = (struct nrf_wifi_fmac_dev_ctx *)dev_ctx;
Expand Down Expand Up @@ -1885,6 +1884,8 @@ enum nrf_wifi_status nrf_wifi_fmac_start_rawpkt_xmit(void *dev_ctx,
out:
def_dev_ctx->raw_pkt_stats.raw_pkts_sent += 1;
return NRF_WIFI_STATUS_SUCCESS;
fail:
return NRF_WIFI_STATUS_FAIL;
}
#endif /* CONFIG_NRF700X_RAW_DATA_TX */

Expand Down
Loading