mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacmn: Move to next rx handler when nbuf clone fails
When calling registered mgmt rx handlers, we iterate through all handlers, and for each handler, clone the nbuf and if cloned successfully, we call the corresponding handler. In case of clone failure, we would simply continue, and not move to the next rx handler, and would possibly attempt cloning for large number of iterations. Instead, when clone fails, we should move to the next rx handler Change-Id: Ia752a2e7699f6fd92fe2a363a6ae19ca2e0cc5fe CRs-Fixed: 2379751
This commit is contained in:
parent
0043ad80db
commit
20209b5300
1 changed files with 3 additions and 1 deletions
|
|
@ -991,8 +991,10 @@ QDF_STATUS tgt_mgmt_txrx_rx_frame_handler(
|
|||
while (rx_handler->next) {
|
||||
copy_buf = qdf_nbuf_clone(buf);
|
||||
|
||||
if (!copy_buf)
|
||||
if (!copy_buf) {
|
||||
rx_handler = rx_handler->next;
|
||||
continue;
|
||||
}
|
||||
|
||||
rx_handler->rx_cb(psoc, peer, copy_buf,
|
||||
mgmt_rx_params, frm_type);
|
||||
|
|
|
|||
Loading…
Reference in a new issue