diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-05-05 12:52:11 +0900 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2022-05-12 10:29:41 -0700 |
commit | cdd66eb52fdaa9bdab7f1be8dc9162bf4acc64ae (patch) | |
tree | 47bff8f5ca3ca2889c69b29c557fc39e486fd1f8 /init | |
parent | c6eee9df57a6d9252bae93a9386d0d872798f5d5 (diff) |
module: do not binary-search in __ksymtab_gpl if fsa->gplok is false
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 <masahiroy@kernel.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions