提交 0f0910a1 编写于 作者: L Linus Torvalds

Merge tag 'locks-v4.0-4' of git://git.samba.org/jlayton/linux

Pull file locking bugfix from Jeff Layton:
 "Just a small fix for a potential problem in one of the lease
  tracepoints"

* tag 'locks-v4.0-4' of git://git.samba.org/jlayton/linux:
  locks: fix generic_delete_lease tracepoint to use victim pointer
...@@ -1728,7 +1728,7 @@ static int generic_delete_lease(struct file *filp, void *owner) ...@@ -1728,7 +1728,7 @@ static int generic_delete_lease(struct file *filp, void *owner)
break; break;
} }
} }
trace_generic_delete_lease(inode, fl); trace_generic_delete_lease(inode, victim);
if (victim) if (victim)
error = fl->fl_lmops->lm_change(victim, F_UNLCK, &dispose); error = fl->fl_lmops->lm_change(victim, F_UNLCK, &dispose);
spin_unlock(&ctx->flc_lock); spin_unlock(&ctx->flc_lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册