Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • I ipipe-x86
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomaixenomai
  • ipipe-x86
  • Repository
  • ipipe-x86
  • arch
  • x86
  • kernel
  • cpu
  • mcheck
  • mce_amd.c
Find file BlameHistoryPermalink
  • Sebastian Andrzej Siewior's avatar
    x86/mcheck: Be prepared for a rollback back to the ONLINE state · 7f34b935
    Sebastian Andrzej Siewior authored Nov 10, 2016
    
    
    If we try a CPU down and fail in the middle then we roll back to the
    online state. This means we would perform CPU_ONLINE / mce_device_create()
    without invoking CPU_DEAD / mce_device_remove() for the cleanup of what was
    allocated in CPU_ONLINE.
    
    Be prepared for this and don't allocate the struct if we have it
    already.
    
    Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
    Acked-by: default avatarBorislav Petkov <bp@alien8.de>
    Cc: Tony Luck <tony.luck@intel.com>
    Cc: rt@linutronix.de
    Cc: linux-edac@vger.kernel.org
    Link: http://lkml.kernel.org/r/20161110174447.11848-4-bigeasy@linutronix.de
    
    
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    7f34b935

Imprint & Privacy Policy