Use devfs_get_cdevpriv in mmap as well.
authorRobert Noland <rnoland@2hip.net>
Sat, 20 Sep 2008 22:34:57 +0000 (18:34 -0400)
committerRobert Noland <rnoland@2hip.net>
Thu, 2 Oct 2008 00:49:03 +0000 (20:49 -0400)
commit81952c7dd18d8fc4617fe4cb761fdf830de5244f
treea06ad21e5e4eb6c211f5a7b30a8b1275a4adef72
parent073cb5ee1d12a7f1a18b7d732f346c16eb740f49
Use devfs_get_cdevpriv in mmap as well.

d_mmap gets called twice and we are only able to associate the file_priv
during the first call.  The second call will return EBADF and we need to
assume that the call was succesful.  d_mmap will not tolerate having an
error returned for the second call.
bsd-core/drm_vm.c