diff options
author | Thomas Klein <tklein@de.ibm.com> | 2009-01-21 14:45:33 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 14:45:33 -0800 |
commit | 3faf2693bd6800c2521799f6a9ae174d9f080ed2 (patch) | |
tree | 264e6516d575c2d385fc47e14f2b3eda54b1de45 /drivers/net/ehea/ehea_qmr.c | |
parent | 086c1b2c52f03d128d1a6db47f8736c56e915043 (diff) | |
download | blackbird-obmc-linux-3faf2693bd6800c2521799f6a9ae174d9f080ed2.tar.gz blackbird-obmc-linux-3faf2693bd6800c2521799f6a9ae174d9f080ed2.zip |
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) unsigned long ret; u64 *rblock; - rblock = kzalloc(PAGE_SIZE, GFP_KERNEL); + rblock = (void *)get_zeroed_page(GFP_KERNEL); if (!rblock) { ehea_error("Cannot allocate rblock memory."); return; @@ -1022,5 +1022,5 @@ void ehea_error_data(struct ehea_adapter *adapter, u64 res_handle) else ehea_error("Error data could not be fetched: %llX", res_handle); - kfree(rblock); + free_page((unsigned long)rblock); } |