svn commit: r232140 - in stable/9/sys: dev/isp i386/conf

Marius Strobl marius at FreeBSD.org
Sat Feb 25 01:18:42 UTC 2012


Author: marius
Date: Sat Feb 25 01:18:42 2012
New Revision: 232140
URL: http://svn.freebsd.org/changeset/base/232140

Log:
  MFC: r231985
  
  Fix memset sizeof

Modified:
  stable/9/sys/dev/isp/isp_freebsd.h
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/amd64/include/xen/   (props changed)
  stable/9/sys/boot/   (props changed)
  stable/9/sys/boot/i386/efi/   (props changed)
  stable/9/sys/boot/ia64/efi/   (props changed)
  stable/9/sys/boot/ia64/ski/   (props changed)
  stable/9/sys/boot/powerpc/boot1.chrp/   (props changed)
  stable/9/sys/boot/powerpc/ofw/   (props changed)
  stable/9/sys/cddl/contrib/opensolaris/   (props changed)
  stable/9/sys/conf/   (props changed)
  stable/9/sys/contrib/dev/acpica/   (props changed)
  stable/9/sys/contrib/octeon-sdk/   (props changed)
  stable/9/sys/contrib/pf/   (props changed)
  stable/9/sys/contrib/x86emu/   (props changed)
  stable/9/sys/i386/conf/XENHVM   (props changed)

Modified: stable/9/sys/dev/isp/isp_freebsd.h
==============================================================================
--- stable/9/sys/dev/isp/isp_freebsd.h	Sat Feb 25 00:41:38 2012	(r232139)
+++ stable/9/sys/dev/isp/isp_freebsd.h	Sat Feb 25 01:18:42 2012	(r232140)
@@ -486,7 +486,7 @@ default:							\
 
 #define	XS_SAVE_SENSE(xs, sense_ptr, slen)	do {			\
 		(xs)->ccb_h.status |= CAM_AUTOSNS_VALID;		\
-		memset(&(xs)->sense_data, 0, sizeof(&(xs)->sense_data));\
+		memset(&(xs)->sense_data, 0, sizeof((xs)->sense_data));	\
 		memcpy(&(xs)->sense_data, sense_ptr, imin(XS_SNSLEN(xs),\
 		       slen)); 						\
 		if (slen < (xs)->sense_len) 				\


More information about the svn-src-stable-9 mailing list