1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

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
This commit is contained in:
Alexander Motin 2012-08-01 12:24:13 +00:00
parent 39faed57b6
commit 1914fdecbe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238969

View File

@ -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_desc.HighPriority.RequestFlags = MPI2_REQ_DESCRIPT_FLAGS_HIGH_PRIORITY;
tm->cm_complete = mpssas_resetdev_complete; tm->cm_complete = mpssas_resetdev_complete;
tm->cm_complete_data = ccb; tm->cm_complete_data = ccb;
tm->cm_targ = targ;
mps_map_command(sc, tm); mps_map_command(sc, tm);
} }