1. 18 Jan, 2011 2 commits
    • Ian Kent's avatar
      vfs - fix dentry ref count in do_lookup() · 89312214
      Ian Kent authored
      There is a ref count problem in fs/namei.c:do_lookup().
      
      When walking in ref-walk mode, if follow_managed() returns a fail we
      need to drop dentry and possibly vfsmount.  Clean up properly,
      as we do in the other caller of follow_managed().
      Signed-off-by: default avatarIan Kent <raven@themaw.net>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      89312214
    • Ian Kent's avatar
      autofs4 - fix get_next_positive_dentry() · c14cc63a
      Ian Kent authored
      The initialization condition in fs/autofs4/expire.c:get_next_positive_dentry()
      appears to be incorrect. If prev == NULL I believe that root should be
      returned.
      
      Further down, at the current dentry check for it being simple_positive()
      it looks like the d_lock for dentry p should be dropped instead of dentry
      ret, otherwise when p is assinged to ret we end up with no lock on p and
      a lost lock on ret, which leads to a deadlock.
      Signed-off-by: default avatarIan Kent <raven@themaw.net>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      c14cc63a
  2. 17 Jan, 2011 38 commits