1. 21 May, 2006 2 commits
    • Lin Feng Shen's avatar
      [PATCH] NFS: fix error handling on access_ok in compat_sys_nfsservctl · d64b1c87
      Lin Feng Shen authored
      Functions compat_nfs_svc_trans, compat_nfs_clnt_trans,
      compat_nfs_exp_trans, compat_nfs_getfd_trans and compat_nfs_getfs_trans,
      which are called by compat_sys_nfsservctl(fs/compat.c), don't handle the
      return value of access_ok properly.  access_ok return 1 when the addr is
      valid, and 0 when it's not, but these functions have the reversed
      understanding.  When the address is valid, they always return -EFAULT to
      compat_sys_nfsservctl.
      
      An example is to run /usr/sbin/rpc.nfsd(32bit program on Power5).  It
      doesn't function as expected.  strace showes that nfsservctl returns
      -EFAULT.
      
      The patch fixes this by correcting the error handling on the return value
      of access_ok in the five functions.
      Signed-off-by: default avatarLin Feng Shen <shenlinf@cn.ibm.com>
      Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
      Acked-by: default avatarNeil Brown <neilb@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      d64b1c87
    • Ayaz Abdulla's avatar
      [PATCH] forcedeth: fix multi irq issues · 84b3932b
      Ayaz Abdulla authored
      With Manfred Spraul <manfred@colorfullife.com> and
           Andrew Morton <akpm@osdl.org>
      
      Bring back this recently-reverted patch, only fixed.
      
      Original changelog:
      
          From: Ayaz Abdulla <aabdulla@nvidia.com>
      
          This patch fixes the issues with multiple irqs.
      
          I am resending based on feedback. I decoupled the dma mask for
          consistent memory and fixed leak with multiple irq in error path.
      
          Thanks to Manfred for catching the spin lock problem.
      
      Fix it:
      
          From: Manfred Spraul <manfred@colorfullife.com>
      
          Fix bug introduced by ebf34c9b, covered in
          http://bugzilla.kernel.org/show_bug.cgi?id=6568.
      
          Remove second instance of the request_irq() calls: they were moved
          from nv_open into nv_request_irq.
      
          Thanks to Alistair Strachan <alistair@devzero.co.uk> for reporting and
          persisting.
      Signed-off-by: default avatarAyaz Abdulla <aabdulla@nvidia.com>
      Signed-off-by: default avatarManfred Spraul <manfred@colorfullife.com>
      Cc: Jeff Garzik <jeff@garzik.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      84b3932b
  2. 20 May, 2006 22 commits
  3. 19 May, 2006 16 commits