diff options
| author | Larry Finger <[email protected]> | 2014-12-30 21:33:07 -0600 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2015-01-05 10:05:44 +0200 |
| commit | e9538cf4f90713eca71b1d6a74b4eae1d445c664 (patch) | |
| tree | f3c3eff86b136edf1890099ffc184b61db05fd4c /drivers/pwm/pwm-imx.c | |
| parent | 7ce67a38f799d1fb332f672b117efbadedaa5352 (diff) | |
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 <[email protected]>
Cc: Stable <[email protected]> [v3.18]
Reported-by: Eric Biggers <[email protected]>
Cc: Eric Biggers <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-imx.c')
0 files changed, 0 insertions, 0 deletions