Skip to content

Commit 006a85e

Browse files
augustssaugustss
authored andcommitted
Oops, forgot two lines in last commit.
1 parent 67acd09 commit 006a85e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sys/compat/ossaudio/ossaudio.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: ossaudio.c,v 1.18 1997/08/11 01:52:47 augustss Exp $ */
1+
/* $NetBSD: ossaudio.c,v 1.19 1997/08/11 01:54:52 augustss Exp $ */
22
#include <sys/param.h>
33
#include <sys/proc.h>
44
#include <sys/systm.h>
@@ -362,6 +362,8 @@ oss_ioctl_audio(p, uap, retval)
362362
case OSS_SNDCTL_DSP_NONBLOCK:
363363
idat = 1;
364364
error = ioctlf(fp, FIONBIO, (caddr_t)&idat, p);
365+
if (error)
366+
return error;
365367
break;
366368
case OSS_SNDCTL_DSP_GETCAPS:
367369
error = ioctlf(fp, AUDIO_GETPROPS, (caddr_t)&idata, p);

0 commit comments

Comments
 (0)