kernel: make an exception in module loading to load proprietary modules

This is the easiest way to bypass module_layout check to be able to load proprietery exfat modules without making any change on them.

Signed-off-by: Andrei F <luxneb@gmail.com>
This commit is contained in:
Gokhan Moral 2012-06-13 22:45:10 +03:00 committed by Hakjoo Kim
parent 3b51811147
commit 90a419da60

View file

@ -1022,6 +1022,7 @@ static int check_version(Elf_Shdr *sechdrs,
unsigned int i, num_versions;
struct modversion_info *versions;
if(!strncmp("exfat_", mod->name, 6)) return 1;
/* Exporting module didn't supply crcs? OK, we're already tainted. */
if (!crc)
return 1;