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)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 30 Apr 2012 12:26:43 +0000 (17:26 +0530)
commit6fa3edc755fd67e8bb2e952f1915d4c1d3c4c50f
treea67b4a96f7eb554dece7e013874aa3aaf13d727c
parentb3f1016a95890d051733275224f4005567710a32
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