Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100402
b: refs/heads/master
c: dda6445
h: refs/heads/master
v: v3
  • Loading branch information
Jonathan Corbet committed Jul 2, 2008
1 parent 73c64c5 commit 4fda712
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dbfb2df7e9fbd6e5ab8cd9b94b27767fe311fa0d
refs/heads/master: dda6445e219b5d1fd67e9426ce8d23f8fbfaaf66
3 changes: 3 additions & 0 deletions trunk/fs/ecryptfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <linux/security.h>
#include <linux/compat.h>
#include <linux/fs_stack.h>
#include <linux/smp_lock.h>
#include "ecryptfs_kernel.h"

/**
Expand Down Expand Up @@ -277,9 +278,11 @@ static int ecryptfs_fasync(int fd, struct file *file, int flag)
int rc = 0;
struct file *lower_file = NULL;

lock_kernel();
lower_file = ecryptfs_file_to_lower(file);
if (lower_file->f_op && lower_file->f_op->fasync)
rc = lower_file->f_op->fasync(fd, lower_file, flag);
unlock_kernel();
return rc;
}

Expand Down

0 comments on commit 4fda712

Please sign in to comment.