Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • X xcap-capability-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
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • xcap
  • xcap-capability-linux
  • Repository
  • xcap-capability-linux
  • drivers
  • net
  • wireless
  • iwmc3200wifi
  • cfg80211.c
Find file BlameHistoryPermalink
  • Dan Carpenter's avatar
    iwmc3200wifi: add a range check to iwm_cfg80211_get_key() · f9a703e1
    Dan Carpenter authored Oct 12, 2011
    
    
    Smatch complains that "key_index" is capped at 5 in nl80211_get_key()
    but iwm->keys[] only has 4 elements.  I don't know if this is really
    needed, but the other ->get_key() implementations seemed to check
    for overflows so I've added a check here.
    
    Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
    Acked-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    f9a703e1