Add a comment noting that the additional range checks are not needed.
The object size is set in the dsp_mmap_single() which provides the range limit by vm_fault(). Reported by: C Turt <ecturt@gmail.com> Reviewed by: alc, markj admbug: 781 MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
83fb1d62ca
commit
d77e8982ab
@ -2205,7 +2205,10 @@ dsp_mmap(struct cdev *i_dev, vm_ooffset_t offset, vm_paddr_t *paddr,
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user