Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe-arm64
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomai
  • ipipe-arm64
  • Repository

Switch branch/tag
  • ipipe-arm64
  • drivers
  • staging
  • fsl-mc
  • bus
  • dprc-driver.c
Find file BlameHistoryPermalink
  • Bharat Bhushan's avatar
    staging: fsl-mc: fix asymmetry in destroy of mc_io · f9362714
    Bharat Bhushan authored Jun 22, 2016
    
    
    An mc_io represents a mapped MC portal.  Previously, an mc_io was
    created for the root dprc in fsl_mc_bus_probe() and for child dprcs
    in dprc_probe().  But the free of that data structure happened in the
    general bus remove callback.  This asymmetry resulted in some bugs due
    to unwanted destroys of mc_io object in some scenarios (e.g. vfio).
    
    Fix this bug by making things symmetric-- mc_io created in
    fsl_mc_bus_probe() is freed in fsl_mc_bus_remove().  The mc_io created
    in dprc_probe() is freed in dprc_remove().
    Signed-off-by: default avatarBharat Bhushan <Bharat.Bhushan@nxp.com>
    [Stuart: added check for root dprc and reworded commit message]
    Signed-off-by: default avatarStuart Yoder <stuart.yoder@nxp.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    f9362714

Replace dprc-driver.c

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.

Imprint & Privacy Policy