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
You need to sign in or sign up before continuing.
  • linux
  • lib
  • dma-debug.c
Find file BlameHistoryPermalink
  • Miles Chen's avatar
    dma-debug: fix memory leak in debug_dma_alloc_coherent · af1da686
    Miles Chen authored Feb 22, 2018
    Marty reported a memory leakage introduced by commit 3aaabbf1
    ("lib/dma-debug.c: fix incorrect pfn calculation"). Fix it
    by checking the virtual address before allocating the entry.
    
    This patch also use virt_addr_valid() instead of virt_to_page()
    to check if a virtual address is linear.
    
    Fixes: 3aaabbf1
    
     ("lib/dma-debug.c: fix incorrect pfn calculation")
    Reported-by: default avatarMarty Faltesek <mfaltesek@google.com>
    Signed-off-by: default avatarMiles Chen <miles.chen@mediatek.com>
    Acked-by: default avatarRobin Murphy <robin.murphy@arm.com>
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    af1da686
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7