Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37039091
en ru br
ALT Linux repos
S:6.30.223.271-alt15.394501.1

Group :: System/Kernel and hardware
RPM: kernel-modules-bcmwl-un-def

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: bcmwl-build-kernel5.9.patch
Download


diff --git a/bcmwl/src/wl/sys/wl_linux.c b/bcmwl/src/wl/sys/wl_linux.c
index 860b935..8823363 100644
--- a/bcmwl/src/wl/sys/wl_linux.c
+++ b/bcmwl/src/wl/sys/wl_linux.c
@@ -1635,8 +1635,13 @@ wl_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
 		goto done2;
 	}
 
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 9, 0))
 	if (segment_eq(get_fs(), KERNEL_DS))
 		buf = ioc.buf;
+#else
+	if (uaccess_kernel())
+		buf = ioc.buf;
+#endif
 
 	else if (ioc.buf) {
 		if (!(buf = (void *) MALLOC(wl->osh, MAX(ioc.len, WLC_IOCTL_MAXLEN)))) {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin