Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37483490
en ru br
ALT Linux repositórios
S:6.30.223.271-alt15.394501.1

Group :: Sistema/Kernel e hardware
RPM: kernel-modules-bcmwl-un-def

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e 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)))) {
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009