diff options
| author | Christos Margiolis <christos@FreeBSD.org> | 2026-05-27 15:50:33 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2026-06-09 19:13:21 +0000 |
| commit | 1bb8212df1878845f0a02e0375f1c4847b11e326 (patch) | |
| tree | d80dae5240e29c34ead790371c5dfa7123ef72e5 /sys/dev | |
| parent | 3444414cb4639ef2028abd9b46641e76eadf363d (diff) | |
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/sound/pcm/dsp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c index bc92a3fbd530..30bd4ac5184e 100644 --- a/sys/dev/sound/pcm/dsp.c +++ b/sys/dev/sound/pcm/dsp.c @@ -1920,6 +1920,9 @@ dsp_mmap_single(struct cdev *i_dev, vm_ooffset_t *offset, struct pcm_channel *wrch, *rdch, *c; int err; + if (*offset >= *offset + size) + return (EINVAL); + /* * https://lists.freebsd.org/pipermail/freebsd-emulation/2007-June/003698.html */ |
