From 559557152261bb047fa44025c3dd91ff9e24a3de Mon Sep 17 00:00:00 2001 From: Kirill Korotaev Date: Wed, 14 Jun 2006 17:59:35 +0400 Subject: [PATCH] --- yaml --- r: 27212 b: refs/heads/master c: 9cedc194a7735e5d74ad26d3825247dc65a4d98e h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/locks.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index bb3b326c18ff..ee6a20081db5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: eb35cf60e462491249166182e3e755d3d5d91a28 +refs/heads/master: 9cedc194a7735e5d74ad26d3825247dc65a4d98e diff --git a/trunk/fs/locks.c b/trunk/fs/locks.c index 6f99c0a6f836..ab61a8b54829 100644 --- a/trunk/fs/locks.c +++ b/trunk/fs/locks.c @@ -755,6 +755,7 @@ static int flock_lock_file(struct file *filp, struct file_lock *request) if (request->fl_type == F_UNLCK) goto out; + error = -ENOMEM; new_fl = locks_alloc_lock(); if (new_fl == NULL) goto out; @@ -781,6 +782,7 @@ static int flock_lock_file(struct file *filp, struct file_lock *request) locks_copy_lock(new_fl, request); locks_insert_lock(&inode->i_flock, new_fl); new_fl = NULL; + error = 0; out: unlock_kernel();