]> err.no Git - linux-2.6/commitdiff
iwlwifi: do not use GFP_DMA in iwl_tx_queue_init
authorJohn W. Linville <linville@tuxdriver.com>
Tue, 2 Sep 2008 19:07:18 +0000 (15:07 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 2 Sep 2008 19:07:18 +0000 (15:07 -0400)
GFP_DMA is not necessary for the iwlwifi hardware and it can cause
allocation failures and/or invoke the OOM killer on lots of systems.

For reference:

https://bugzilla.redhat.com/show_bug.cgi?id=459709

Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-tx.c

index d82823b5c8abce08948fad392cd9e8c3368aabf5..ff879d46624a887dbe85363acf81e5077ffa2192 100644 (file)
@@ -426,7 +426,7 @@ static int iwl_tx_queue_init(struct iwl_priv *priv,
                                continue;
                }
 
-               txq->cmd[i] = kmalloc(len, GFP_KERNEL | GFP_DMA);
+               txq->cmd[i] = kmalloc(len, GFP_KERNEL);
                if (!txq->cmd[i])
                        return -ENOMEM;
        }