]> git.baikalelectronics.ru Git - kernel.git/commit
modpost: fix segfault with short symbol names
authorMichal Marek <mmarek@suse.cz>
Sat, 12 Dec 2009 11:02:24 +0000 (12:02 +0100)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 15 Dec 2009 05:58:37 +0000 (16:28 +1030)
commit807af7351da15211d3b20b9bb5abf3972dcdffae
treebe2ccab1e28b6ed28f166ddb06cc53beb7f40ce7
parent2d00586d02a02db3c040ce1b8547887a68d9848e
modpost: fix segfault with short symbol names

memcmp() is wrong here, the symbol name can be shorter than KSYMTAB_PFX
or CRC_PFX.

Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
scripts/mod/modpost.c