One more obvious test.

This commit is contained in:
enami 2004-10-10 22:10:06 +00:00
parent 4fbd9df224
commit 9c893ee4c1
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cardbus.c,v 1.57 2004/10/10 22:00:36 enami Exp $ */
/* $NetBSD: cardbus.c,v 1.58 2004/10/10 22:10:06 enami Exp $ */
/*
* Copyright (c) 1997, 1998, 1999 and 2000
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cardbus.c,v 1.57 2004/10/10 22:00:36 enami Exp $");
__KERNEL_RCSID(0, "$NetBSD: cardbus.c,v 1.58 2004/10/10 22:10:06 enami Exp $");
#include "opt_cardbus.h"
@ -911,6 +911,9 @@ decode_tuple(u_int8_t *tuple, u_int8_t *end,
u_int8_t type;
u_int8_t len;
if (tuple + 2 > end)
return (NULL);
type = tuple[0];
len = tuple[1] + 2;