diff options
Diffstat (limited to 'sys/dev/pci/sv.c')
-rw-r--r-- | sys/dev/pci/sv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/sv.c b/sys/dev/pci/sv.c index 78a2888cec8..76be6bf66d6 100644 --- a/sys/dev/pci/sv.c +++ b/sys/dev/pci/sv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sv.c,v 1.22 2007/11/05 00:17:28 jakemsr Exp $ */ +/* $OpenBSD: sv.c,v 1.23 2008/01/14 01:23:53 jakemsr Exp $ */ /* * Copyright (c) 1998 Constantine Paul Sapuntzakis @@ -1027,6 +1027,9 @@ sv_query_devinfo(addr, dip) mixer_devinfo_t *dip; { + if (dip->index < 0) + return (ENXIO); + /* It's a class */ if (dip->index <= SV_LAST_CLASS) { dip->type = AUDIO_MIXER_CLASS; |