diff -u -r a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
--- a/src/wl/sys/wl_linux.c	2020-10-12 21:19:15.256305165 +0000
+++ b/src/wl/sys/wl_linux.c	2020-10-12 21:20:38.687530895 +0000
@@ -1643,7 +1643,7 @@
 		goto done2;
 	}
 
-	if (segment_eq(get_fs(), KERNEL_DS))
+	if (get_fs().seg == KERNEL_DS.seg)
 		buf = ioc.buf;
 
 	else if (ioc.buf) {