提交 579b0637 编写于 作者: M Matt Renzelmann 提交者: John W. Linville

hostap: GFP_ATOMIC/GFP_KERNEL cleanup

The driver is allocating memory during initialization with GFP_ATOMIC
even though GFP_KERNEL is sufficient.  This patch fixes it.
Signed-off-by: NMatt Renzelmann <mjr@cs.wisc.edu>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 ec14bcd2
...@@ -244,8 +244,7 @@ u16 hostap_tx_callback_register(local_info_t *local, ...@@ -244,8 +244,7 @@ u16 hostap_tx_callback_register(local_info_t *local,
unsigned long flags; unsigned long flags;
struct hostap_tx_callback_info *entry; struct hostap_tx_callback_info *entry;
entry = kmalloc(sizeof(*entry), entry = kmalloc(sizeof(*entry), GFP_KERNEL);
GFP_ATOMIC);
if (entry == NULL) if (entry == NULL)
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册