aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/sound/pcm/dsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c
index 337eb4e175b2..52c30f847f01 100644
--- a/sys/dev/sound/pcm/dsp.c
+++ b/sys/dev/sound/pcm/dsp.c
@@ -1993,7 +1993,7 @@ dsp_mmap_single(struct cdev *cdev, vm_ooffset_t *offset,
CHN_LOCK(c);
if ((c->flags & CHN_F_MMAP_INVALID) ||
- *offset + size > c->bufsoft->allocsize) {
+ c->bufsoft->allocsize < *offset + size) {
CHN_UNLOCK(c);
PCM_GIANT_EXIT(d);
return (EINVAL);