[Midnightbsd-cvs] src [7906] trunk/sbin/camcontrol/camcontrol.c: avoid segfault in the smpphylist command
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Sep 14 15:19:35 EDT 2016
Revision: 7906
http://svnweb.midnightbsd.org/src/?rev=7906
Author: laffer1
Date: 2016-09-14 15:19:34 -0400 (Wed, 14 Sep 2016)
Log Message:
-----------
avoid segfault in the smpphylist command
Modified Paths:
--------------
trunk/sbin/camcontrol/camcontrol.c
Modified: trunk/sbin/camcontrol/camcontrol.c
===================================================================
--- trunk/sbin/camcontrol/camcontrol.c 2016-09-14 19:18:36 UTC (rev 7905)
+++ trunk/sbin/camcontrol/camcontrol.c 2016-09-14 19:19:34 UTC (rev 7906)
@@ -5458,6 +5458,7 @@
bzero(&(&ccb->ccb_h)[1],
sizeof(union ccb) - sizeof(struct ccb_hdr));
+ STAILQ_INIT(&devlist.dev_queue);
rgrequest = malloc(sizeof(*rgrequest));
if (rgrequest == NULL) {
@@ -5526,7 +5527,6 @@
goto bailout;
}
- STAILQ_INIT(&devlist.dev_queue);
devlist.path_id = device->path_id;
retval = buildbusdevlist(&devlist);
More information about the Midnightbsd-cvs
mailing list