]> git.karo-electronics.de Git - linux-beck.git/commit
staging: rtl8192e: Fix kernel panics due to RX skb allocation failures
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 13 Jul 2011 16:06:34 +0000 (11:06 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Wed, 24 Aug 2011 01:22:14 +0000 (20:22 -0500)
commit82a7fc6d4cde3584c8c637d2482994853b44243d
treea550e65c33b9b3e79a385d9a1f4bfad58d3308e4
parentb1d5ee7004c85558f3e8330235db2d7b4f7a6a3e
staging: rtl8192e: Fix kernel panics due to RX skb allocation failures

This driver uses RX skb's of O(2), thus it is possible for memory fragmentation
to prevent the allocation of a new one to replace a newly-received buffer.
When such a failure occurs, the kernel panics.

The fix is to drop an incoming packet whenever such an allocation fails. This
fix matches the one done in rtlwifi for other Realtek PCI devices.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
drivers/staging/rtl8192e/rtl_core.c