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
  • of
  • of_pci.c
Find file BlameHistoryPermalink
  • Lorenzo Pieralisi's avatar
    of/pci: Free resources on failure in of_pci_get_host_bridge_resources() · d2be00c0
    Lorenzo Pieralisi authored Jan 27, 2015
    In the function of_pci_get_host_bridge_resources() if the parsing of ranges
    fails, previously allocated resources inclusive of bus_range are not freed
    and are not expected to be freed by the function caller on error return.
    
    This patch fixes the issues by adding code that properly frees resources
    and bus_range before exiting the function with an error return value.
    
    Fixes: cbe4097f
    
     ("of/pci: Add support for parsing PCI host bridge resources from DT")
    Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
    Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
    Acked-by: default avatarLiviu Dudau <liviu.dudau@arm.com>
    CC: Arnd Bergmann <arnd@arndb.de>
    CC: Rob Herring <robh+dt@kernel.org>
    d2be00c0
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7