forked from Minki/linux
cxgb4: zero the HMA memory
firmware expects HMA memory to be zeroed, use __GFP_ZERO
for HMA memory allocation.
Fixes: 8b4e6b3ca2
("cxgb4: Add HMA support")
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
69678bcd4d
commit
2b928749f9
@ -3433,8 +3433,8 @@ static int adap_config_hma(struct adapter *adapter)
|
||||
sgl = adapter->hma.sgt->sgl;
|
||||
node = dev_to_node(adapter->pdev_dev);
|
||||
for_each_sg(sgl, iter, sgt->orig_nents, i) {
|
||||
newpage = alloc_pages_node(node, __GFP_NOWARN | GFP_KERNEL,
|
||||
page_order);
|
||||
newpage = alloc_pages_node(node, __GFP_NOWARN | GFP_KERNEL |
|
||||
__GFP_ZERO, page_order);
|
||||
if (!newpage) {
|
||||
dev_err(adapter->pdev_dev,
|
||||
"Not enough memory for HMA page allocation\n");
|
||||
|
Loading…
Reference in New Issue
Block a user