git: kernel - Fix bug in cdev_pager_allocate() that was messing up gem/ttm

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Jul 1 01:08:43 PDT 2014


commit 3b9c5039bd8352b7d29904e165a64aa155b71825
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Jul 1 01:06:20 2014 -0700

    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

Summary of changes:
 sys/vm/device_pager.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3b9c5039bd8352b7d29904e165a64aa155b71825


-- 
DragonFly BSD source repository



More information about the Commits mailing list