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
  • kernel
  • cgroup.c
Find file BlameHistoryPermalink
  • Tejun Heo's avatar
    cgroup: set css->id to -1 during init · 0356b95f
    Tejun Heo authored May 26, 2016
    [ Upstream commit 8fa3b8d6
    
     ]
    
    If percpu_ref initialization fails during css_create(), the free path
    can end up trying to free css->id of zero.  As ID 0 is unused, it
    doesn't cause a critical breakage but it does trigger a warning
    message.  Fix it by setting css->id to -1 from init_and_link_css().
    
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Cc: Wenwei Tao <ww.tao0320@gmail.com>
    Fixes: 01e58659
    
     ("cgroup: release css->id after css_free")
    Cc: stable@vger.kernel.org # v4.0+
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
    0356b95f
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7