rt2x00: Use GFP_KERNEL for rx buffer allocation on USB devices
Since the RX path on USB devices is handled in process context we can use GFP_KERNEL for RX buffer allocation. This should reduce the likelihood of allocation failures. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Tested-By: Marc Dietrich <marvin24@gmx.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
0c0fdf6c80
commit
88211021a6
@@ -588,7 +588,7 @@ static int rt2x00lib_rxdone_read_signal(struct rt2x00_dev *rt2x00dev,
|
||||
return 0;
|
||||
}
|
||||
|
||||
void rt2x00lib_rxdone(struct queue_entry *entry)
|
||||
void rt2x00lib_rxdone(struct queue_entry *entry, gfp_t gfp)
|
||||
{
|
||||
struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev;
|
||||
struct rxdone_entry_desc rxdesc;
|
||||
@@ -608,7 +608,7 @@ void rt2x00lib_rxdone(struct queue_entry *entry)
|
||||
* Allocate a new sk_buffer. If no new buffer available, drop the
|
||||
* received frame and reuse the existing buffer.
|
||||
*/
|
||||
skb = rt2x00queue_alloc_rxskb(entry);
|
||||
skb = rt2x00queue_alloc_rxskb(entry, gfp);
|
||||
if (!skb)
|
||||
goto submit_entry;
|
||||
|
||||
|
Reference in New Issue
Block a user