All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mca_drv: Add minstate validation
@ 2006-02-09  6:43 Hidetoshi Seto
  0 siblings, 0 replies; only message in thread
From: Hidetoshi Seto @ 2006-02-09  6:43 UTC (permalink / raw)
  To: linux-ia64

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>

-----

  arch/ia64/kernel/mca_drv.c |    3 +++
  1 files changed, 3 insertions(+)

Index: linux-2.6.16-rc2/arch/ia64/kernel/mca_drv.c
=================================--- linux-2.6.16-rc2.orig/arch/ia64/kernel/mca_drv.c	2006-02-08 13:03:49.000000000 +0900
+++ linux-2.6.16-rc2/arch/ia64/kernel/mca_drv.c	2006-02-08 15:24:09.000000000 +0900
@@ -437,6 +437,9 @@
  	 *    the process not have any locks of kernel.
  	 */

+	/* Is minstate valid? */
+	if (!peidx_bottom(peidx) || !(peidx_bottom(peidx)->valid.minstate))
+		return 0;
  	psr1 =(struct ia64_psr *)&(peidx_minstate_area(peidx)->pmsa_ipsr);

  	/*



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-09  6:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-09  6:43 [PATCH] mca_drv: Add minstate validation Hidetoshi Seto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.