From: J. Bruce Fields Date: Sun, 31 Oct 2010 16:35:48 +0000 (-0400) Subject: locks: minor setlease cleanup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=255c7cf810e4776ae8f1023332060459f30d8a2a;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git locks: minor setlease cleanup Signed-off-by: J. Bruce Fields --- diff --git a/fs/locks.c b/fs/locks.c index 5cb65062281..feaac634d0d 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -1399,7 +1399,7 @@ int generic_setlease(struct file *filp, long arg, struct file_lock **flp) for (before = &inode->i_flock; ((fl = *before) != NULL) && IS_LEASE(fl); before = &fl->fl_next) { - if (fl->fl_file == lease->fl_file) + if (fl->fl_file == filp) my_before = before; else if (fl->fl_type == (F_INPROGRESS | F_UNLCK)) /*