Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Aug 2012 12:24:13 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r238969 - head/sys/dev/mps
Message-ID:  <201208011224.q71CODfX053132@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Wed Aug  1 12:24:13 2012
New Revision: 238969
URL: http://svn.freebsd.org/changeset/base/238969

Log:
  Fix kernel panic on `camcontrol reset` for specific target, caused by
  uninitialized cm_targ in mpssas_action_resetdev().
  
  Reviewed by:	Desai, Kashyap <Kashyap.Desai@lsi.com>
  Sponsored by:	iXsystems, Inc.
  MFC after:	3 days

Modified:
  head/sys/dev/mps/mps_sas.c

Modified: head/sys/dev/mps/mps_sas.c
==============================================================================
--- head/sys/dev/mps/mps_sas.c	Wed Aug  1 09:10:21 2012	(r238968)
+++ head/sys/dev/mps/mps_sas.c	Wed Aug  1 12:24:13 2012	(r238969)
@@ -3003,6 +3003,7 @@ mpssas_action_resetdev(struct mpssas_sof
 	tm->cm_desc.HighPriority.RequestFlags = MPI2_REQ_DESCRIPT_FLAGS_HIGH_PRIORITY;
 	tm->cm_complete = mpssas_resetdev_complete;
 	tm->cm_complete_data = ccb;
+	tm->cm_targ = targ;
 	mps_map_command(sc, tm);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208011224.q71CODfX053132>