Module Name: src
Committed By: isaki
Date: Sun Dec 13 05:44:09 UTC 2020
Modified Files:
src/sys/dev/audio: audio.c
Log Message:
Fix a return value of audiopoll().
fo_poll is expected to return revents rather than errno on error.
To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/sys/dev/audio/audio.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/audio/audio.c
diff -u src/sys/dev/audio/audio.c:1.83 src/sys/dev/audio/audio.c:1.84
--- src/sys/dev/audio/audio.c:1.83 Sun Dec 13 05:29:19 2020
+++ src/sys/dev/audio/audio.c Sun Dec 13 05:44:09 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.83 2020/12/13 05:29:19 isaki Exp $ */
+/* $NetBSD: audio.c,v 1.84 2020/12/13 05:44:09 isaki Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -138,7 +138,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.83 2020/12/13 05:29:19 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.84 2020/12/13 05:44:09 isaki Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -1873,7 +1873,7 @@ audiopoll(struct file *fp, int events)
sc = audio_file_enter(file, &sc_ref);
if (sc == NULL)
- return EIO;
+ return POLLERR;
switch (AUDIODEV(dev)) {
case SOUND_DEVICE: