1. 18 Dec, 2015 3 commits
  2. 14 Dec, 2015 6 commits
  3. 01 Dec, 2015 1 commit
  4. 21 Nov, 2015 2 commits
  5. 16 Nov, 2015 2 commits
  6. 10 Nov, 2015 1 commit
  7. 05 Nov, 2015 1 commit
  8. 03 Nov, 2015 2 commits
  9. 22 Oct, 2015 3 commits
  10. 20 Oct, 2015 3 commits
  11. 14 Oct, 2015 1 commit
    • Michel Dänzer's avatar
      Fix void pointer arithmetic in drmProcessPciDevice · 3045523d
      Michel Dänzer authored and Michel Dänzer's avatar Michel Dänzer committed
      
      
      Arithmetic on void pointers is a GCC extension.
      
        CC       libdrm_la-xf86drm.lo
      ../xf86drm.c: In function 'drmProcessPciDevice':
      ../xf86drm.c:3017:10: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
           addr += sizeof(drmDevice);
                ^
      ../xf86drm.c:3020:10: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
           addr += DRM_NODE_MAX * sizeof(void *);
                ^
      ../xf86drm.c:3023:14: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
               addr += max_node_str;
                    ^
      ../xf86drm.c:3035:14: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
               addr += sizeof(drmPciBusInfo);
                    ^
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      3045523d
  12. 02 Oct, 2015 1 commit
    • Matt Roper's avatar
      xf86drm: Fix error handling for drmGetDevices() · 8c4a1cbd
      Matt Roper authored and Emil Velikov's avatar Emil Velikov committed
      
      
      If the opendir() call in drmGetDevices() returns failure, we jump to an
      error label that calls closedir() and then returns.  However this means
      that we're calling closedir(NULL) which may not be safe on all
      implementations.  We are also leaking the local_devices array that was
      allocated before the opendir() call.
      
      Fix both of these issues by jumping to an earlier error label (to free
      local_devices) and guarding the closedir() call with a NULL test.
      Signed-off-by: Matt Roper's avatarMatt Roper <matthew.d.roper@intel.com>
      [Emil Velikov: make the teardown symmetrical, remove the NULL check]
      Signed-off-by: Emil Velikov's avatarEmil Velikov <emil.l.velikov@gmail.com>
      8c4a1cbd
  13. 28 Sep, 2015 1 commit
  14. 21 Sep, 2015 13 commits