powerpc/mpic_msgr: add lock for MPIC message global variable
authorMingkai Hu <Mingkai.hu@freescale.com>
Mon, 16 Apr 2012 02:05:06 +0000 (10:05 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 19 Apr 2012 19:55:56 +0000 (14:55 -0500)
commite0a5a6c38190a5016bcb0f1267324a19b846a35a
tree7b8c6f20b23303f6d6cca4d32010fab70bc73b7b
parentbdce27c7f7bc7cf5c3a264bab9de056bd9cb0c9d
powerpc/mpic_msgr: add lock for MPIC message global variable

Also fix issue of accessing invalid msgr pointer issue. The local
msgr pointer in fucntion mpic_msgr_get will be accessed before
getting a valid address which will cause kernel crash.

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/mpic_msgr.c