mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
qcacmn: Remove qdf_nbuf_free for NULL buf
qdf_nbuf_free was invoked even if buf is NULL Remove qdf_nbuf_free Change-Id: Ibb77d073501b320d27ff5c42cc9d86e27863585d CRs-Fixed: 2120169
This commit is contained in:
parent
4db22523ff
commit
1fae3c8f03
1 changed files with 4 additions and 5 deletions
|
|
@ -808,14 +808,13 @@ QDF_STATUS tgt_mgmt_txrx_rx_frame_handler(
|
|||
struct mgmt_rx_handler *rx_handler_head = NULL, *rx_handler_tail = NULL;
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
|
||||
if (!psoc) {
|
||||
mgmt_txrx_err("psoc_ctx passed is NULL");
|
||||
qdf_nbuf_free(buf);
|
||||
if (!buf) {
|
||||
mgmt_txrx_err("buffer passed is NULL");
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
if (!buf) {
|
||||
mgmt_txrx_err("buffer passed is NULL");
|
||||
if (!psoc) {
|
||||
mgmt_txrx_err("psoc_ctx passed is NULL");
|
||||
qdf_nbuf_free(buf);
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue