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 (15:58 +1030)
commit8d99513c1b76cfd0b2dcf061c5136cb1061e6b37
treebe2ccab1e28b6ed28f166ddb06cc53beb7f40ce7
parentd4703aefdbc8f9f347f6dcefcddd791294314eb7
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