]> Pileus Git - ~andy/linux/commitdiff
[PATCH] hostap: Use GFP_ATOMIC to get rid of weird might_sleep issue
authorJean Tourrilhes <jt@hpl.hp.com>
Sat, 24 Sep 2005 04:59:00 +0000 (21:59 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Sat, 24 Sep 2005 07:33:51 +0000 (03:33 -0400)
This is the trace I got :
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/wireless/hostap/hostap_ioctl.c

index dd9817261a3a4ced89e618edde516e54c3932e47..1764563612a86bc3ef0c6ac9677f6beaf4a4c520 100644 (file)
@@ -1935,7 +1935,7 @@ static char * __prism2_translate_scan(local_info_t *local,
        }
 
        /* 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) {
                memset(&iwe, 0, sizeof(iwe));
                iwe.cmd = IWEVCUSTOM;