Date: Wed, 1 May 2013 04:37:45 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250132 - head/sys/contrib/octeon-sdk Message-ID: <201305010437.r414bjUx064485@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Wed May 1 04:37:45 2013 New Revision: 250132 URL: http://svnweb.freebsd.org/changeset/base/250132 Log: Fix incorrect sizeof() in bzero() Submitted by: swildner@DragonFlyBSD.org Reviewed by: alfred, jmallett Modified: head/sys/contrib/octeon-sdk/cvmx-usbd.c Modified: head/sys/contrib/octeon-sdk/cvmx-usbd.c ============================================================================== --- head/sys/contrib/octeon-sdk/cvmx-usbd.c Wed May 1 04:37:34 2013 (r250131) +++ head/sys/contrib/octeon-sdk/cvmx-usbd.c Wed May 1 04:37:45 2013 (r250132) @@ -245,7 +245,7 @@ int cvmx_usbd_initialize(cvmx_usbd_state if (cvmx_unlikely(flags & CVMX_USBD_INITIALIZE_FLAGS_DEBUG)) cvmx_dprintf("%s: Called\n", __FUNCTION__); - memset(usb, 0, sizeof(usb)); + memset(usb, 0, sizeof(*usb)); usb->init_flags = flags; usb->index = usb_port_number;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305010437.r414bjUx064485>