瀏覽代碼

[PATCH] hostap: Use GFP_ATOMIC to get rid of weird might_sleep issue

	This is the trace I got :
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Jean Tourrilhes 19 年之前
父節點
當前提交
a9d12b9a4a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/net/wireless/hostap/hostap_ioctl.c

+ 1 - 1
drivers/net/wireless/hostap/hostap_ioctl.c

@@ -1935,7 +1935,7 @@ static char * __prism2_translate_scan(local_info_t *local,
 	}
 	}
 
 
 	/* TODO: add BeaconInt,resp_rate,atim into BSS table */
 	/* TODO: add BeaconInt,resp_rate,atim into BSS table */
-	buf = kmalloc(MAX_WPA_IE_LEN * 2 + 30, GFP_KERNEL);
+	buf = kmalloc(MAX_WPA_IE_LEN * 2 + 30, GFP_ATOMIC);
 	if (buf && scan) {
 	if (buf && scan) {
 		memset(&iwe, 0, sizeof(iwe));
 		memset(&iwe, 0, sizeof(iwe));
 		iwe.cmd = IWEVCUSTOM;
 		iwe.cmd = IWEVCUSTOM;