]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC, mc: Fix locking around mc_devices list
authorBorislav Petkov <bp@suse.de>
Mon, 14 Nov 2016 12:26:11 +0000 (13:26 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 14 Nov 2016 12:26:11 +0000 (13:26 +0100)
commitc3144bd7b4945e03ebdb5e4322b8b78656e01c9b
treeb69476c5ed7827c7e545c75bc189a296eabb60f9
parent26e7f5417b95e34af9ae3aacba711f78285be0bb
EDAC, mc: Fix locking around mc_devices list

When accessing the mc_devices list of memory controller descriptors, we
need to hold mem_ctls_mutex. This was not always the case, fix that.

Make all external callers call a version which grabs the mutex since the
last is local to edac_mc.c.

Reported-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/edac_mc.c