Thread (5 messages) flat view 5 messages, 4 authors, 2015-01-12

Re: [PATCH V3 for 3.19] rtlwifi: Fix error when accessing unmapped memory in skb

From: Kalle Valo <hidden>
Date: 2015-01-05 08:08:00
Also in: linux-wireless

Larry Finger [off-list ref] writes:
These drivers use 9100-byte receive buffers, thus allocating an skb requires
an O(3) memory allocation. Under heavy memory loads and fragmentation, such
a request can fail. Previous versions of the driver have dropped the packet
and reused the old buffer; however, the new version introduced a bug in that
it released the old buffer before trying to allocate a new one. The previous
method is implemented here. The skb is unmapped before any attempt is made to
allocate another.

Signed-off-by: Larry Finger <redacted>
Cc: Stable <redacted>  [v3.18]
Reported-by: Eric Biggers <redacted>
Cc: Eric Biggers <redacted>
Thanks, applied to wireless-drivers.git.

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