kernel - Fix bug in cdev_pager_allocate() that was messing up gem/ttm
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 1 Jul 2014 08:06:20 +0000 (01:06 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 1 Jul 2014 08:06:20 +0000 (01:06 -0700)
commit3b9c5039bd8352b7d29904e165a64aa155b71825
tree7e54b797fdaa4912f8b659cca1a7943e139d7238
parentef55a15d6c52c62481c5be750d8d53d89ff6e057
kernel - Fix bug in cdev_pager_allocate() that was messing up gem/ttm

* cdev_pager_allocate() was assuming that the passed vm_object handle
  was a cdev_t and populating a field in it, but that is not always the case.
  Fix the case.

* This solves RBTREE corruption in drm/ttm.

Reported-by: Joris Giovannangeli
sys/vm/device_pager.c