summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormglocker <mglocker@openbsd.org>2008-11-10 11:54:39 +0000
committermglocker <mglocker@openbsd.org>2008-11-10 11:54:39 +0000
commitef4f3969932dfd3a0eb9c7dfd35ce49e7ac9943a (patch)
treee5cfcb9b977eae112342eb0ef36e86250f1f4ba1
parentFix typo in comment, okay jmc@. (diff)
downloadwireguard-openbsd-ef4f3969932dfd3a0eb9c7dfd35ce49e7ac9943a.tar.xz
wireguard-openbsd-ef4f3969932dfd3a0eb9c7dfd35ce49e7ac9943a.zip
One more replacement; 2 -> UVIDEO_SH_MIN_LEN
-rw-r--r--sys/dev/usb/uvideo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c
index 78f0de6927b..9fca9cd6c81 100644
--- a/sys/dev/usb/uvideo.c
+++ b/sys/dev/usb/uvideo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvideo.c,v 1.90 2008/11/09 21:24:55 mglocker Exp $ */
+/* $OpenBSD: uvideo.c,v 1.91 2008/11/10 11:54:39 mglocker Exp $ */
/*
* Copyright (c) 2008 Robert Nagy <robert@openbsd.org>
@@ -1648,7 +1648,7 @@ uvideo_vs_decode_stream_header(struct uvideo_softc *sc, uint8_t *frame,
struct usb_video_stream_header *sh;
int sample_len;
- if (frame_size < 2)
+ if (frame_size < UVIDEO_SH_MIN_LEN)
/* frame too small to contain a valid stream header */
return (USBD_INVAL);