From 1914fdecbeb8eae2ae1c156d6bff9fe49a8d64b2 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Wed, 1 Aug 2012 12:24:13 +0000 Subject: [PATCH] Fix kernel panic on `camcontrol reset` for specific target, caused by uninitialized cm_targ in mpssas_action_resetdev(). Reviewed by: Desai, Kashyap Sponsored by: iXsystems, Inc. MFC after: 3 days --- sys/dev/mps/mps_sas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/mps/mps_sas.c b/sys/dev/mps/mps_sas.c index ecdc10e75281..dba981e7ed33 100644 --- a/sys/dev/mps/mps_sas.c +++ b/sys/dev/mps/mps_sas.c @@ -3003,6 +3003,7 @@ mpssas_action_resetdev(struct mpssas_softc *sassc, union ccb *ccb) 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); }