1. 11 Aug, 2015 1 commit
    • Daniel Vetter's avatar
      drm/rockchip: Don't grab dev->struct_mutex for in mmap offset ioctl · 648a4ce7
      Daniel Vetter authored
      Since David Herrmann's mmap vma manager rework we don't need to grab
      dev->struct_mutex any more to prevent races when looking up the mmap
      offset. Drop it and instead don't forget to use the unref_unlocked
      variant (since the drm core still cares).
      
      Aside: I stumbled over the mmap handler which directly does a
      dma_mmap_attrs. But totally fails to grab a reference on the
      underlying object and hence looks like it happily just leaks the ptes
      since there's no guarantee the mmap isn't still around when
      gem_free_object is called. Which the kerneldoc of dma_mmap_attrs
      explicitly forbids.
      
      v2: Fixup compile fail 0-day spotted.
      
      Cc: Mark Yao <mark.yao@rock-chips.com>
      Reviewed-by: default avatarThierry Reding <treding@nvidia.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      648a4ce7
  2. 10 Aug, 2015 7 commits
  3. 07 Aug, 2015 1 commit
  4. 06 Aug, 2015 31 commits