Author: gonzo
Date: Sat Dec 31 05:25:42 2011
New Revision: 229071
URL: http://svn.freebsd.org/changeset/base/229071

Log:
  - Properly clean state structure in cvmx_usb_initialize

Modified:
  head/sys/contrib/octeon-sdk/cvmx-usb.c

Modified: head/sys/contrib/octeon-sdk/cvmx-usb.c
==============================================================================
--- head/sys/contrib/octeon-sdk/cvmx-usb.c      Sat Dec 31 05:24:21 2011        
(r229070)
+++ head/sys/contrib/octeon-sdk/cvmx-usb.c      Sat Dec 31 05:25:42 2011        
(r229071)
@@ -654,7 +654,7 @@ cvmx_usb_status_t cvmx_usb_initialize(cv
             }
     }
 
-    memset(usb, 0, sizeof(usb));
+    memset(usb, 0, sizeof(*usb));
     usb->init_flags = flags;
 
     /* Initialize the USB state structure */
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to