diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2014-06-04 08:01:26 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2014-06-04 08:01:26 +0000 |
commit | bea43fe30c4a4a0cd8183b64372892a47619d311 (patch) | |
tree | 887feb8639aec16e8c7c4eeaae9828f904db7021 /sys | |
parent | d078b491a53d016c4f2820721411619c5e6da8a2 (diff) |
Properly compare endpoint addresses: ignore the direction bit which
is not part of the address. From Remco <remco at d-compu.dyndns.org>,
thanks!
ok mpi@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/uaudio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c index 35050769cc4..cc2a43e9aa5 100644 --- a/sys/dev/usb/uaudio.c +++ b/sys/dev/usb/uaudio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uaudio.c,v 1.102 2014/05/17 12:43:18 ratchov Exp $ */ +/* $OpenBSD: uaudio.c,v 1.103 2014/06/04 08:01:25 ratchov Exp $ */ /* $NetBSD: uaudio.c,v 1.90 2004/10/29 17:12:53 kent Exp $ */ /* @@ -1765,7 +1765,8 @@ uaudio_process_as(struct uaudio_softc *sc, const char *buf, int *offsp, return (USBD_NORMAL_COMPLETION); } if (sync_addr && - UE_GET_ADDR(sync_ed->bEndpointAddress) != sync_addr) { + UE_GET_ADDR(sync_ed->bEndpointAddress) != + UE_GET_ADDR(sync_addr)) { printf("%s: sync ep address mismatch\n", sc->sc_dev.dv_xname); return (USBD_NORMAL_COMPLETION); |