From owner-svn-src-all@FreeBSD.ORG Mon Jan 21 07:31:16 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A4CB2219; Mon, 21 Jan 2013 07:31:16 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 7DA39F66; Mon, 21 Jan 2013 07:31:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r0L7VGSw009959; Mon, 21 Jan 2013 07:31:16 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r0L7VGHx009958; Mon, 21 Jan 2013 07:31:16 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201301210731.r0L7VGHx009958@svn.freebsd.org> From: Hans Petter Selasky Date: Mon, 21 Jan 2013 07:31:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r245734 - stable/9/sys/dev/usb/quirk X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2013 07:31:16 -0000 Author: hselasky Date: Mon Jan 21 07:31:15 2013 New Revision: 245734 URL: http://svnweb.freebsd.org/changeset/base/245734 Log: MFC r245249: Bugfix: Fix sizeof() argument. Found by: Haakon Loevdal Modified: stable/9/sys/dev/usb/quirk/usb_quirk.c Directory Properties: stable/9/sys/ (props changed) stable/9/sys/dev/ (props changed) Modified: stable/9/sys/dev/usb/quirk/usb_quirk.c ============================================================================== --- stable/9/sys/dev/usb/quirk/usb_quirk.c Mon Jan 21 07:28:46 2013 (r245733) +++ stable/9/sys/dev/usb/quirk/usb_quirk.c Mon Jan 21 07:31:15 2013 (r245734) @@ -798,7 +798,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 */