mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 02:23:05 +00:00
Currently, !fsa->gplok && syms->license == GPL_ONLY) is checked after bsearch() succeeds. It is meaningless to do the binary search in the GPL symbol table when fsa->gplok is false because we know find_exported_symbol_in_section() will fail anyway. This check should be done before bsearch(). Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Luis Chamberlain <[email protected]>