EDAC, mv64x60: Sanity check edac_op_state before registering
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Wed, 7 Jun 2017 21:55:30 +0000 (09:55 +1200)
committerBorislav Petkov <bp@suse.de>
Fri, 9 Jun 2017 09:55:55 +0000 (11:55 +0200)
commit3b405e30cbcac3aa327ae04a29e7da5d084a4933
tree99a22ecf33ca89eab317d2e69c04cf842ed5de21
parentcf97825862f0acd7d6bad67da59962e4badc870a
EDAC, mv64x60: Sanity check edac_op_state before registering

edac_op_state is a module parameter which affects the behaviour of
the driver probe which can potentially be invoked as soon as the
platform driver registration happens. Because of this we need to
ensure that we sanity check the module parameter before calling
platform_register_drivers().

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170607215530.8604-1-chris.packham@alliedtelesis.co.nz
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/mv64x60_edac.c