1. 10 Jan, 2006 2 commits
    • Dave Airlie's avatar
      drm: fix radeon warnings on 64-bit · f8e0f290
      Dave Airlie authored
      From: Andrew Morton <akpm@osdl.org>
      
      drivers/char/drm/radeon_state.c: In function `radeon_cp_dispatch_texture':
      drivers/char/drm/radeon_state.c:1653: warning: int format, different type arg
      (arg 3)
      drivers/char/drm/radeon_state.c:1661: warning: int format, different type arg
      (arg 3)
      drivers/char/drm/radeon_state.c:1689: warning: int format, different type arg
      (arg 3)
      
      sizeof() doesn't return an int.
      
      Cc: Dave Airlie <airlied@linux.ie>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
      f8e0f290
    • Dave Airlie's avatar
      drm: fix warning on alpha · 2185200c
      Dave Airlie authored
      From: Andrew Morton <akpm@osdl.org>
      
      On alpha:
      
      drivers/char/drm/via_dmablit.h:44: error: field `direction' has incomplete type
      
      Cc: Dave Airlie <airlied@linux.ie>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
      2185200c
  2. 03 Jan, 2006 4 commits
  3. 02 Jan, 2006 17 commits
  4. 01 Jan, 2006 2 commits
  5. 31 Dec, 2005 3 commits
    • Linus Torvalds's avatar
      35f349ee
    • Yi Yang's avatar
      [PATCH] Fix false old value return of sysctl · 82c9df82
      Yi Yang authored
      For the sysctl syscall, if the user wants to get the old value of a
      sysctl entry and set a new value for it in the same syscall, the old
      value is always overwritten by the new value if the sysctl entry is of
      string type and if the user sets its strategy to sysctl_string.  This
      issue lies in the strategy being run twice if the strategy is set to
      sysctl_string, the general strategy sysctl_string always returns 0 if
      success.
      
      Such strategy routines as sysctl_jiffies and sysctl_jiffies_ms return 1
      because they do read and write for the sysctl entry.
      
      The strategy routine sysctl_string return 0 although it actually read
      and write the sysctl entry.
      
      According to my analysis, if a strategy routine do read and write, it
      should return 1, if it just does some necessary check but not read and
      write, it should return 0, for example sysctl_intvec.
      Signed-off-by: default avatarYi Yang <yang.y.yi@gmail.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      82c9df82
    • Linus Torvalds's avatar
      sysctl: don't overflow the user-supplied buffer with '\0' · 8febdd85
      Linus Torvalds authored
      If the string was too long to fit in the user-supplied buffer,
      the sysctl layer would zero-terminate it by writing past the
      end of the buffer. Don't do that.
      
      Noticed by Yi Yang <yang.y.yi@gmail.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      8febdd85
  6. 30 Dec, 2005 5 commits
  7. 29 Dec, 2005 7 commits