1. 13 8月, 2015 1 次提交
  2. 05 8月, 2015 7 次提交
  3. 12 3月, 2015 2 次提交
    • C
      drm/vmwgfx: Correctly NULLify dma buffer pointer on failure · da5efffc
      Colin Ian King 提交于
      cppcheck on lines 917 and 977 show an ineffective assignment
      to the dma buffer pointer:
      
      [drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:917]:
      [drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:977]:
        (warning) Assignment of function parameter has no effect
        outside the function. Did you forget dereferencing it?
      
      On a successful DMA buffer lookup, the dma buffer pointer is
      assigned, however, on failure it currently is left in an
      undefined state.
      
      The original intention in the error exit path was to nullify
      the pointer on an error (which the original code failed to
      do properly). This patch fixes this also ensures all failure
      paths nullify the buffer pointer on the error return.
      
      Fortunately the callers to vmw_translate_mob_ptr and
      vmw_translate_guest_ptr are checking on a return status and not
      on the dma buffer pointer, so the original code worked.
      Reviewed-by: NThomas Hellstrom <thellstrom@vmware.com>
      Signed-off-by: NColin Ian King <colin.king@canonical.com>
      da5efffc
    • T
      drm/vmwgfx: Fix a couple of lock dependency violations · 5151adb3
      Thomas Hellstrom 提交于
      Experimental lockdep annotation added to the TTM lock has unveiled a
      couple of lock dependency violations in the vmwgfx driver. In both
      cases it turns out that the device_private::reservation_sem is not
      needed so the offending code is moved out of that lock.
      
      Cc: <stable@vger.kernel.org>
      Acked-by: NSinclair Yeh <syeh@vmware.com>
      Signed-off-by: NThomas Hellstrom <thellstrom@vmware.com>
      5151adb3
  4. 04 12月, 2014 1 次提交
  5. 11 9月, 2014 1 次提交
  6. 02 9月, 2014 2 次提交
  7. 01 9月, 2014 3 次提交
  8. 04 7月, 2014 1 次提交
  9. 24 4月, 2014 1 次提交
  10. 28 3月, 2014 1 次提交
  11. 13 2月, 2014 1 次提交
  12. 12 2月, 2014 3 次提交
  13. 05 2月, 2014 5 次提交
  14. 17 1月, 2014 11 次提交