]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 29 Oct 2010 04:44:11 +0000 (21:44 -0700)
commitf462e0c4f1b095fd184e394aa7c1dffee65817e2
tree09e11f03da3ab3688116b61590143aee7d9bbaf8
parent1198008fe2259f91008f9d0347ea0c0d55395fa3
r8169: allocate with GFP_KERNEL flag when able to sleep

commit aeb19f6052b5e5c8a24aa444fbff73b84341beac upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/r8169.c