Skip to content

Commit 6ec460c

Browse files
committed
nrf_wifi: Free the buffer in case of invalid type
If we are failing due to invalid RX frame type, the buffer should be freed to avoid a memory leak. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 1acfdf2 commit 6ec460c

File tree

1 file changed

+1
-0
lines changed
  • drivers/nrf_wifi/fw_if/umac_if/src

1 file changed

+1
-0
lines changed

drivers/nrf_wifi/fw_if/umac_if/src/rx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ enum nrf_wifi_status nrf_wifi_fmac_rx_event_process(struct nrf_wifi_fmac_dev_ctx
398398
__func__,
399399
config->rx_pkt_type);
400400
status = NRF_WIFI_STATUS_FAIL;
401+
nrf_wifi_osal_nbuf_free(nwb);
401402
continue;
402403
}
403404

0 commit comments

Comments
 (0)