From: Larry Finger Date: Wed, 31 Dec 2014 03:33:07 +0000 (-0600) Subject: rtlwifi: Fix error when accessing unmapped memory in skb X-Git-Tag: fixes-v4.0-rc1~296^2~19^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9538cf4f90713eca71b1d6a74b4eae1d445c664;p=pandora-kernel.git rtlwifi: Fix error when accessing unmapped memory in skb 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 Cc: Stable [v3.18] Reported-by: Eric Biggers Cc: Eric Biggers Signed-off-by: Kalle Valo --- Reading git-diff-tree failed