Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lib: asn1_decoder - add MODULE_LICENSE("GPL")

A kernel taint results when loading the rsa_generic module:

root@(none):~# modprobe rsa_generic
asn1_decoder: module license 'unspecified' taints kernel.
Disabling lock debugging due to kernel taint

"Tainting" of the kernel is (usually) a way of indicating that
a proprietary module has been inserted, which is not the case here.

Signed-off-by: Tudor Ambarus <tudor-dan.ambarus@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Tudor Ambarus and committed by
Herbert Xu
ccab6058 dbe24620

+3
+3
lib/asn1_decoder.c
··· 12 12 #include <linux/export.h> 13 13 #include <linux/kernel.h> 14 14 #include <linux/errno.h> 15 + #include <linux/module.h> 15 16 #include <linux/asn1_decoder.h> 16 17 #include <linux/asn1_ber_bytecode.h> 17 18 ··· 505 504 return -EBADMSG; 506 505 } 507 506 EXPORT_SYMBOL_GPL(asn1_ber_decoder); 507 + 508 + MODULE_LICENSE("GPL");