Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • kernel
  • module
  • main.c
Find file BlameHistoryPermalink
  • Masahiro Yamada's avatar
    module: do not binary-search in __ksymtab_gpl if fsa->gplok is false · cdd66eb5
    Masahiro Yamada authored May 05, 2022
    
    
    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: default avatarMasahiro Yamada <masahiroy@kernel.org>
    Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
    cdd66eb5
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7