diff options
Diffstat (limited to 'sys/dev/sound')
-rw-r--r-- | sys/dev/sound/pcm/sound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index da3c05e..7e693e3 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -881,7 +881,7 @@ do_status(int action, struct uio *buf) case 0: /* open */ if (status_open) return EBUSY; - if (sbuf_new(&s, NULL, 4096, 0)) + if (sbuf_new(&s, NULL, 4096, 0) == NULL) return ENXIO; bufptr = 0; err = (status_init(&s) > 0)? 0 : ENOMEM; |