Hi James, >> We will stop submitting URBs for Rx data when pending packet count >> reaches high threshold and restart them when enough packets are >> consumed to solve the problem. > >Other drivers and user activity can deplete memory. How does this patch >solve the problem when dev_alloc_skb fails? I'm worried the underlying >issue remains; handling out of memory. > This patch basically avoids out of memory issue caused by our driver. It also solves the problem when dev_alloc_skb fails by other reasons. When dev_alloc_skb is failed in mwifiex_usb_submit_rx_urb(), we skip submitting that particular URB and "ctx->skb" remains NULL. Later when pending packets are being consumed in Rx work queue, "if_ops.submit_rem_rx_urb()" call takes care of submitting the URB skipped previously. Please let me know you have any doubts. Regards, Amitkumar -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html