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); } _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"