PERFORCE change 110661 for review

Scott Long scottl at FreeBSD.org
Tue Nov 28 23:22:46 PST 2006


http://perforce.freebsd.org/chv.cgi?CH=110661

Change 110661 by scottl at scottl-x64 on 2006/11/29 07:21:23

	Fix a WITNESS warning.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/cam/scsi/scsi_da.c#16 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/cam/scsi/scsi_da.c#16 (text+ko) ====

@@ -1810,7 +1810,9 @@
 	/* Do a read capacity */
 	rcap = (struct scsi_read_capacity_data *)malloc(sizeof(*rcaplong),
 							M_TEMP,
-							M_WAITOK);
+							M_NOWAIT);
+	if (rcap == NULL)
+		return (ENOMEM);
 		
 	ccb = cam_periph_getccb(periph, /*priority*/1);
 	scsi_read_capacity(&ccb->csio,


More information about the p4-projects mailing list