Neuter DRM(mapbufs) until somebody finds time to try to fix it.

It is _never_ OK to find a vnode from a struct cdev because you have
no way of telling if you get the right one.  You might be in jail or
chroot for instance.
This commit is contained in:
Poul-Henning Kamp 2005-02-22 13:56:15 +00:00
parent c73b559b27
commit d5469a8ba5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=142223

View File

@ -923,8 +923,12 @@ int DRM(mapbufs)( DRM_IOCTL_ARGS )
#ifdef __FreeBSD__
vaddr = round_page((vm_offset_t)vms->vm_daddr + MAXDSIZ);
#ifdef this_is_just_plain_bogus
retcode = vm_mmap(&vms->vm_map, &vaddr, size, PROT_READ | PROT_WRITE,
VM_PROT_ALL, MAP_SHARED, SLIST_FIRST(&kdev->si_hlist), foff );
#else
retcode = EOPNOTSUPP;
#endif
#elif defined(__NetBSD__)
vaddr = round_page((vaddr_t)vms->vm_daddr + MAXDSIZ);
retcode = uvm_mmap(&vms->vm_map, &vaddr, size,