From owner-svn-src-head@FreeBSD.ORG Thu Feb 6 10:38:41 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 18283F7B; Thu, 6 Feb 2014 10:38:41 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 031371149; Thu, 6 Feb 2014 10:38:41 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s16Acefo071152; Thu, 6 Feb 2014 10:38:40 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s16Ace7L071150; Thu, 6 Feb 2014 10:38:40 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201402061038.s16Ace7L071150@svn.freebsd.org> From: Hans Petter Selasky Date: Thu, 6 Feb 2014 10:38:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r261543 - head/sys/dev/usb/net X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Feb 2014 10:38:41 -0000 Author: hselasky Date: Thu Feb 6 10:38:40 2014 New Revision: 261543 URL: http://svnweb.freebsd.org/changeset/base/261543 Log: Fix kernelbuild when full debugging features are enabled. Pointyhat: hselasky @ MFC after: 2 weeks Modified: head/sys/dev/usb/net/if_urndis.c head/sys/dev/usb/net/if_urndisreg.h Modified: head/sys/dev/usb/net/if_urndis.c ============================================================================== --- head/sys/dev/usb/net/if_urndis.c Thu Feb 6 09:57:27 2014 (r261542) +++ head/sys/dev/usb/net/if_urndis.c Thu Feb 6 10:38:40 2014 (r261543) @@ -838,7 +838,7 @@ urndis_bulk_read_callback(struct usb_xfe DPRINTF("invalid dataoffset %u larger than %u\n", msg.rm_dataoffset + msg.rm_datalen + (uint32_t)__offsetof(struct urndis_packet_msg, - rm_dataoffset)); + rm_dataoffset), actlen); goto tr_setup; } else if (msg.rm_datalen < (uint32_t)sizeof(struct ether_header)) { ifp->if_ierrors++; Modified: head/sys/dev/usb/net/if_urndisreg.h ============================================================================== --- head/sys/dev/usb/net/if_urndisreg.h Thu Feb 6 09:57:27 2014 (r261542) +++ head/sys/dev/usb/net/if_urndisreg.h Thu Feb 6 10:38:40 2014 (r261543) @@ -53,7 +53,7 @@ struct urndis_softc { #define URNDIS_LOCK(sc) mtx_lock(&(sc)->sc_mtx) #define URNDIS_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) -#define URNDIS_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->sc_mtx, (x)) +#define URNDIS_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->sc_mtx, (what)) #define RNDIS_STATUS_BUFFER_OVERFLOW 0x80000005L #define RNDIS_STATUS_FAILURE 0xC0000001L