svn commit: r342148 - stable/12/sys/dev/sound/pcm
Konstantin Belousov
kib at FreeBSD.org
Sun Dec 16 02:46:10 UTC 2018
Author: kib
Date: Sun Dec 16 02:46:09 2018
New Revision: 342148
URL: https://svnweb.freebsd.org/changeset/base/342148
Log:
MFC r341400:
Add a comment noting that the additional range checks are not needed.
Modified:
stable/12/sys/dev/sound/pcm/dsp.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/sound/pcm/dsp.c
==============================================================================
--- stable/12/sys/dev/sound/pcm/dsp.c Sun Dec 16 02:44:57 2018 (r342147)
+++ stable/12/sys/dev/sound/pcm/dsp.c Sun Dec 16 02:46:09 2018 (r342148)
@@ -2205,7 +2205,10 @@ dsp_mmap(struct cdev *i_dev, vm_ooffset_t offset, vm_p
int nprot, vm_memattr_t *memattr)
{
- /* XXX memattr is not honored */
+ /*
+ * offset is in range due to checks in dsp_mmap_single().
+ * XXX memattr is not honored.
+ */
*paddr = vtophys(offset);
return (0);
}
More information about the svn-src-all
mailing list