1. 25 Jun, 2013 1 commit
    • Alan Coopersmith's avatar
      Define PCI_MATCH_ANY as an unsigned int · a39f0546
      Alan Coopersmith authored
      
      
      Clears a bunch of clang warnings of the forms:
      
      common_device_name.c:345:23: warning: comparison of integers of different signs:
       'const uint32_t' (aka 'const unsigned int') and 'int' [-Wsign-compare]
          if ( m->vendor_id == PCI_MATCH_ANY ) {
               ~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~
      
      common_device_name.c:498:19: warning: implicit conversion changes signedness:
       'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
          m.device_id = PCI_MATCH_ANY;
                      ~ ^~~~~~~~~~~~~
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      a39f0546
  2. 12 Jun, 2013 2 commits
  3. 08 Jun, 2013 2 commits
  4. 10 Mar, 2013 1 commit
  5. 15 Jan, 2013 3 commits
  6. 03 Jan, 2013 1 commit
  7. 21 Oct, 2012 3 commits
  8. 13 Oct, 2012 1 commit
  9. 31 May, 2012 1 commit
  10. 24 Apr, 2012 2 commits
  11. 09 Apr, 2012 1 commit
  12. 04 Apr, 2012 1 commit
  13. 14 Mar, 2012 1 commit
  14. 05 Mar, 2012 2 commits
  15. 04 Mar, 2012 1 commit
  16. 27 Feb, 2012 2 commits
  17. 24 Feb, 2012 1 commit
  18. 09 Feb, 2012 3 commits
  19. 03 Jan, 2012 1 commit
  20. 28 Nov, 2011 1 commit
    • Daniel Drake's avatar
      delete_io_handle: fix deletion of last handle · a798395a
      Daniel Drake authored
      
      
      When num_ios goes from 1 to 0, a realloc(ios, 0); call is made.
      This is equivalent to free(ios) and NULL is returned.
      
      However, the previous logic in the code incorrectly discards this NULL
      return value. When we next call new_io_handle(), realloc(ios, X) is
      called with "ios" pointing to freed memory. This causes glibc to abort.
      
      Correct this logic to detect the 1-to-0 case and handle it correctly.
      Other cases are unchanged; there is still value in checking the
      return value from realloc() as it also returns NULL on error.
      Signed-off-by: default avatarDaniel Drake <dsd@laptop.org>
      Reviewed-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      a798395a
  21. 19 Nov, 2011 2 commits
  22. 18 Nov, 2011 1 commit
  23. 09 Nov, 2011 2 commits
  24. 25 Oct, 2011 1 commit
  25. 15 Oct, 2011 1 commit
  26. 11 Oct, 2011 1 commit
  27. 09 Oct, 2011 1 commit