Skip to content

Commit

Permalink
Merge branch 'edac-urgent' into edac-for-next
Browse files Browse the repository at this point in the history
Pick up urgent change into next queue.

Signed-off-by: Borislav Petkov <bp@suse.de>
  • Loading branch information
Borislav Petkov committed Oct 17, 2019
2 parents 9816b4a + 1e72e67 commit 3a5e7ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/edac/ghes_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,11 @@ void ghes_edac_unregister(struct ghes *ghes)
if (!ghes_pvt)
return;

if (atomic_dec_return(&ghes_init))
return;

mci = ghes_pvt->mci;
ghes_pvt = NULL;
edac_mc_del_mc(mci->pdev);
edac_mc_free(mci);
}

0 comments on commit 3a5e7ec

Please sign in to comment.