Thread (4 messages) flat view 4 messages, 2 authors, 2015-03-13

Re: [PATCH] rtlwifi: get buffer_desc before trying to alloc new skb

From: Yang Bai <hidden>
Date: 2015-03-13 02:36:54
Also in: lkml, netdev

On Fri, Mar 13, 2015 at 1:29 AM, Larry Finger [off-list ref] wrote:
On 03/12/2015 06:33 AM, Yang Bai wrote:
quoted
if rtlpriv->use_new_trx_flow == true and we run out of memory
to alloc a new skb, we will directly jump to no_new tag with
buffer_desc == NULL. Then we will dereference this NULL pointer
in function _rtl_pci_init_one_rxdesc.

Signed-off-by: Yang Bai <redacted>

Is the attached patch OK? I have tested it, but it is unlikely that I have
hit any memory failures, thus that part needs to be checked by eye.
Looks good to me. Thanks very much for your review.

Yang
Larry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help