diff options
author | Thomas Klein <tklein@de.ibm.com> | 2009-01-21 17:45:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 17:45:33 -0500 |
commit | 3faf2693bd6800c2521799f6a9ae174d9f080ed2 (patch) | |
tree | 264e6516d575c2d385fc47e14f2b3eda54b1de45 /drivers/net/ehea/ehea_qmr.c | |
parent | 086c1b2c52f03d128d1a6db47f8736c56e915043 (diff) |
ehea: Fix mem allocations which require page alignment
PAGE_SIZE allocations via slab are not guaranteed to be page-aligned. Fixed
all memory allocations where page alignment is required by firmware.
Signed-off-by: Thomas Klein <tklein@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ehea/ehea_qmr.c')
-rw-r--r-- | drivers/net/ehea/ehea_qmr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ehea/ehea_qmr.c b/drivers/net/ehea/ehea_qmr.c index 49d766ebbcf4..3747457f5e69 100644 --- a/drivers/net/ehea/ehea_qmr.c +++ b/drivers/net/ehea/ehea_qmr.c | |||
@@ -1005,7 +1005,7 @@ void ehea_error_data(struct ehea_adapter *adapter, u64 res_handle) | |||
1005 | unsigned long ret; | 1005 | unsigned long ret; |
1006 | u64 *rblock; | 1006 | u64 *rblock; |
1007 | 1007 | ||
1008 | rblock = kzalloc(PAGE_SIZE, GFP_KERNEL); | 1008 | rblock = (void *)get_zeroed_page(GFP_KERNEL); |
1009 | if (!rblock) { | 1009 | if (!rblock) { |
1010 | ehea_error("Cannot allocate rblock memory."); | 1010 | ehea_error("Cannot allocate rblock memory."); |
1011 | return; | 1011 | return; |
@@ -1022,5 +1022,5 @@ void ehea_error_data(struct ehea_adapter *adapter, u64 res_handle) | |||
1022 | else | 1022 | else |
1023 | ehea_error("Error data could not be fetched: %llX", res_handle); | 1023 | ehea_error("Error data could not be fetched: %llX", res_handle); |
1024 | 1024 | ||
1025 | kfree(rblock); | 1025 | free_page((unsigned long)rblock); |
1026 | } | 1026 | } |