diff options
author | eadler <eadler@FreeBSD.org> | 2013-05-01 04:37:45 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2013-05-01 04:37:45 +0000 |
commit | 4d50cec7052469379ca421b218ddd83b5d3286d8 (patch) | |
tree | 5b92ce1b2e0f77369e8a5f6ea652487bdba3cb7a | |
parent | a5a9ec51d6e8b0b33f89b8e4b171a2fd674818ed (diff) | |
download | FreeBSD-src-4d50cec7052469379ca421b218ddd83b5d3286d8.zip FreeBSD-src-4d50cec7052469379ca421b218ddd83b5d3286d8.tar.gz |
Fix incorrect sizeof() in bzero()
Submitted by: swildner@DragonFlyBSD.org
Reviewed by: alfred, jmallett
-rw-r--r-- | sys/contrib/octeon-sdk/cvmx-usbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/contrib/octeon-sdk/cvmx-usbd.c b/sys/contrib/octeon-sdk/cvmx-usbd.c index 85b8013..863dc32 100644 --- a/sys/contrib/octeon-sdk/cvmx-usbd.c +++ b/sys/contrib/octeon-sdk/cvmx-usbd.c @@ -245,7 +245,7 @@ int cvmx_usbd_initialize(cvmx_usbd_state_t *usb, 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; |