r8169: allocate with GFP_KERNEL flag when able to sleep
authorStanislaw Gruszka <sgruszka@redhat.com>
Fri, 8 Oct 2010 04:25:00 +0000 (04:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Oct 2010 16:15:34 +0000 (09:15 -0700)
commitaeb19f6052b5e5c8a24aa444fbff73b84341beac
tree4341687f14d888a9715b8521f3e36d39c2b2d765
parentae6df5f96a51818d6376da5307d773baeece4014
r8169: allocate with GFP_KERNEL flag when able to sleep

We have fedora bug report where driver fail to initialize after
suspend/resume because of memory allocation errors:
https://bugzilla.redhat.com/show_bug.cgi?id=629158

To fix use GFP_KERNEL allocation where possible.

Tested-by: Neal Becker <ndbecker2@gmail.com>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/r8169.c