git: drm - Fix valid NULL address returned from i915 mmap ioctl

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Jun 9 11:36:45 PDT 2015


commit c7b62c42c8f47d69671ce133bf25081a2a45ca7a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Jun 9 11:35:19 2015 -0700

    drm - Fix valid NULL address returned from i915 mmap ioctl
    
    * Do not allow the ioctl to mmap at address 0.  This fixes assertions
      in mpv and probably de-confuses other programs too.
    
    * Calling vm_map_hint() is sufficient to ensure that a reasonable start
      address is used.
    
    Reported-by: zrj, joris.

Summary of changes:
 sys/dev/drm/i915/i915_gem.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c7b62c42c8f47d69671ce133bf25081a2a45ca7a


-- 
DragonFly BSD source repository


More information about the Commits mailing list