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
  • drivers
  • gpu
  • drm
  • amd
  • amdgpu
  • amdgpu_device.c
Find file BlameHistoryPermalink
  • Liang He's avatar
    drm/amdgpu: Fix potential double free and null pointer dereference · dfd0287b
    Liang He authored Nov 22, 2022
    
    
    In amdgpu_get_xgmi_hive(), we should not call kfree() after
    kobject_put() as the PUT will call kfree().
    
    In amdgpu_device_ip_init(), we need to check the returned *hive*
    which can be NULL before we dereference it.
    
    Signed-off-by: default avatarLiang He <windhl@126.com>
    Reviewed-by: default avatarLuben Tuikov <luben.tuikov@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    dfd0287b
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7