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

2015-03-12 Thread Yang Bai
On Fri, Mar 13, 2015 at 1:29 AM, Larry Finger wrote: > On 03/12/2015 06:33 AM, Yang Bai wrote: >> >> 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 >> i

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

2015-03-12 Thread Larry Finger
On 03/12/2015 06:33 AM, Yang Bai wrote: 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 Is t

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

2015-03-12 Thread Larry Finger
On 03/12/2015 06:33 AM, Yang Bai wrote: 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 Good

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

2015-03-12 Thread Yang Bai
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 --- drivers/net/wireless/rtlwifi/pci.c | 12 +++