diff options
author | hselasky <hselasky@FreeBSD.org> | 2014-02-06 10:38:40 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2014-02-06 10:38:40 +0000 |
commit | b0635e77a92213ffbae588f933e0cfded5de6716 (patch) | |
tree | 2cdd0566b4ebf07da841f5cb9a7d28fd742d4619 /sys/dev | |
parent | 1253516150e769411fddb16f543b39c6642bbee8 (diff) | |
download | FreeBSD-src-b0635e77a92213ffbae588f933e0cfded5de6716.zip FreeBSD-src-b0635e77a92213ffbae588f933e0cfded5de6716.tar.gz |
Fix kernelbuild when full debugging features are enabled.
Pointyhat: hselasky @
MFC after: 2 weeks
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/net/if_urndis.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/net/if_urndisreg.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/net/if_urndis.c b/sys/dev/usb/net/if_urndis.c index b4856a0..a7ee602 100644 --- a/sys/dev/usb/net/if_urndis.c +++ b/sys/dev/usb/net/if_urndis.c @@ -838,7 +838,7 @@ urndis_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error) 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++; diff --git a/sys/dev/usb/net/if_urndisreg.h b/sys/dev/usb/net/if_urndisreg.h index 315faa7..6dc3660 100644 --- a/sys/dev/usb/net/if_urndisreg.h +++ b/sys/dev/usb/net/if_urndisreg.h @@ -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 |