RAS/CEC: Increment cec_entered under the mutex lock
authorWANG Chao <chao.wang@ucloud.cn>
Thu, 18 Apr 2019 03:41:14 +0000 (03:41 +0000)
committerBorislav Petkov <bp@suse.de>
Sat, 20 Apr 2019 10:16:52 +0000 (12:16 +0200)
commit09cbd2197e9291d6a3d3f42873f06ca1f388c1a4
tree5626f4de88e0d5341a7b9d86f4aa5d16d226c50f
parent28156d7678431312b463361b23a218a1b5645ba5
RAS/CEC: Increment cec_entered under the mutex lock

Modify ->cec_entered in the critical section of the mutex.

Signed-off-by: WANG Chao <chao.wang@ucloud.cn>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: https://lkml.kernel.org/r/20190418034115.75954-2-chao.wang@ucloud.cn
drivers/ras/cec.c