summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/linux-at91-5.4.243/linux-5.4-module-taint.patch
blob: da3cd68f630b25f2170abd3c6d45e2a29cc99104 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 For usage of rs9113 driver.  Another reason not to want
 to use this driver.
===========================================================
diff -Naru a/kernel/module.c b/kernel/module.c
--- a/kernel/module.c	2022-06-17 15:57:38.000000000 -0500
+++ b/kernel/module.c	2022-06-28 15:48:04.441116492 -0500
@@ -1476,14 +1476,6 @@
 	if (!sym)
 		goto unlock;
 
-	if (license == GPL_ONLY)
-		mod->using_gplonly_symbols = true;
-
-	if (!inherit_taint(mod, owner)) {
-		sym = NULL;
-		goto getname;
-	}
-
 	if (!check_version(info, name, mod, crc)) {
 		sym = ERR_PTR(-EINVAL);
 		goto getname;