Date: Thu, 10 Jan 2013 08:06:12 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r245249 - head/sys/dev/usb/quirk Message-ID: <201301100806.r0A86C3K012401@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Thu Jan 10 08:06:12 2013 New Revision: 245249 URL: http://svnweb.freebsd.org/changeset/base/245249 Log: Bugfix: Fix sizeof() argument. Found by: Haakon Loevdal MFC after: 1 week Modified: head/sys/dev/usb/quirk/usb_quirk.c Modified: head/sys/dev/usb/quirk/usb_quirk.c ============================================================================== --- head/sys/dev/usb/quirk/usb_quirk.c Thu Jan 10 07:45:46 2013 (r245248) +++ head/sys/dev/usb/quirk/usb_quirk.c Thu Jan 10 08:06:12 2013 (r245249) @@ -799,7 +799,7 @@ usb_quirk_ioctl(unsigned long cmd, caddr } if (x == USB_SUB_QUIRKS_MAX) { /* all quirk entries are unused - release */ - memset(pqe, 0, sizeof(pqe)); + memset(pqe, 0, sizeof(*pqe)); } mtx_unlock(&usb_quirk_mtx); return (0); /* success */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301100806.r0A86C3K012401>