isp(4): Fix wrong sizeof().
authorSascha Wildner <saw@online.de>
Thu, 16 Feb 2012 14:48:27 +0000 (15:48 +0100)
committerSascha Wildner <saw@online.de>
Thu, 16 Feb 2012 14:48:43 +0000 (15:48 +0100)
sys/dev/disk/isp/isp_freebsd.h

index 1f8f0bf..dd0cde5 100644 (file)
@@ -484,7 +484,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)                             \