Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329009
b: refs/heads/master
c: 64e09fa
h: refs/heads/master
i:
  329007: 0023f2c
v: v3
  • Loading branch information
Al Viro committed Sep 27, 2012
1 parent 7b18dac commit 62d0b5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ea65c96077f9bb5c0e5e224a4da751d269c5f94
refs/heads/master: 64e09fa2e1fef1696a8685c7aad7e0d3dd24ce71
6 changes: 3 additions & 3 deletions trunk/fs/xfs/xfs_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ xfs_find_handle(
struct inode *inode;
struct file *file = NULL;
struct path path;
int error;
int error, fput_needed;
struct xfs_inode *ip;

if (cmd == XFS_IOC_FD_TO_HANDLE) {
file = fget(hreq->fd);
file = fget_light(hreq->fd, &fput_needed);
if (!file)
return -EBADF;
inode = file->f_path.dentry->d_inode;
Expand Down Expand Up @@ -134,7 +134,7 @@ xfs_find_handle(

out_put:
if (cmd == XFS_IOC_FD_TO_HANDLE)
fput(file);
fput_light(file, fput_needed);
else
path_put(&path);
return error;
Expand Down

0 comments on commit 62d0b5b

Please sign in to comment.