diff options
author | Brian King <brking@linux.vnet.ibm.com> | 2010-06-30 07:59:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-02 01:45:52 -0400 |
commit | 3d8009c780ee90fccb5c171caf30aff839f13547 (patch) | |
tree | 489b142084ea073201e02ac8bbb91cf1a0400830 /drivers/net/ehea/ehea_main.c | |
parent | 05318bc905467237d4aa68a701f6e92a2b332218 (diff) |
ehea: Allocate stats buffer with GFP_KERNEL
Since ehea_get_stats calls ehea_h_query_ehea_port, which
can sleep, we can also sleep when allocating a page in
this function. This fixes some memory allocation failure
warnings seen under low memory conditions.
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ehea/ehea_main.c')
-rw-r--r-- | drivers/net/ehea/ehea_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c index 8b92acb448c2..3beba70b7dea 100644 --- a/drivers/net/ehea/ehea_main.c +++ b/drivers/net/ehea/ehea_main.c | |||
@@ -335,7 +335,7 @@ static struct net_device_stats *ehea_get_stats(struct net_device *dev) | |||
335 | 335 | ||
336 | memset(stats, 0, sizeof(*stats)); | 336 | memset(stats, 0, sizeof(*stats)); |
337 | 337 | ||
338 | cb2 = (void *)get_zeroed_page(GFP_ATOMIC); | 338 | cb2 = (void *)get_zeroed_page(GFP_KERNEL); |
339 | if (!cb2) { | 339 | if (!cb2) { |
340 | ehea_error("no mem for cb2"); | 340 | ehea_error("no mem for cb2"); |
341 | goto out; | 341 | goto out; |