HomeFreeBSD

sound(4): Fix memory map of /dev/dsp devices when buffer size is not a multiple…

Description

sound(4): Fix memory map of /dev/dsp devices when buffer size is not a multiple of PAGE_SIZE.

By using sndbuf_getallocsize() instead of sndbuf_getsize() in dsp_mmap_single().

PR: 267555
MFC after: 1 week
Sponsored by: NVIDIA Networking

Details

Provenance
dev_submerge.chAuthored on Nov 4 2022, 6:04 PM
hselaskyCommitted on Nov 4 2022, 6:05 PM
Parents
rGeb4d86d529e2: getty: Avoid NULL deref if stdin is not a tty.
Branches
Unknown
Tags
Unknown