[IA64] mca_drv: Add minstate validation

MCA driver can cause panic if kernel gets a state info with no minstate.
This patch adds minstate validation before handling it.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>

authored by Hidetoshi Seto and committed by Tony Luck a9474646 1ff0be15

+3
+3
arch/ia64/kernel/mca_drv.c
··· 437 437 * the process not have any locks of kernel. 438 438 */ 439 439 440 + /* Is minstate valid? */ 441 + if (!peidx_bottom(peidx) || !(peidx_bottom(peidx)->valid.minstate)) 442 + return 0; 440 443 psr1 =(struct ia64_psr *)&(peidx_minstate_area(peidx)->pmsa_ipsr); 441 444 442 445 /*