Skip to content

Commit a9b1b45

Browse files
author
Jeff Layton
committed
locks: fix generic_delete_lease tracepoint to use victim pointer
It's possible that "fl" won't point at a valid lock at this point, so use "victim" instead which is either a valid lock or NULL. Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
1 parent 5fb0f7f commit a9b1b45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/locks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,7 @@ static int generic_delete_lease(struct file *filp, void *owner)
17281728
break;
17291729
}
17301730
}
1731-
trace_generic_delete_lease(inode, fl);
1731+
trace_generic_delete_lease(inode, victim);
17321732
if (victim)
17331733
error = fl->fl_lmops->lm_change(victim, F_UNLCK, &dispose);
17341734
spin_unlock(&ctx->flc_lock);

0 commit comments

Comments
 (0)