]> 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:51:36 +0000 (21:51 -0700)
commit431e8d4b696f8cc10db1458865262139dda15e42
tree0adcee8a30c83d240e3eaf4ab39cce2c80cfd219
parent2af177aa5f4de44ac9f142f6bc51469f915ab159
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