Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329014
b: refs/heads/master
c: 2a11735
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Sep 27, 2012
1 parent 28883e4 commit a6bd6f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 7b540d0646ce122f0ba4520412be91e530719742
refs/heads/master: 2a117354b7bdfe13750a64307755e75436fb157a
5 changes: 3 additions & 2 deletions trunk/fs/ocfs2/cluster/heartbeat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,7 @@ static ssize_t o2hb_region_dev_write(struct o2hb_region *reg,
struct inode *inode = NULL;
ssize_t ret = -EINVAL;
int live_threshold;
int fput_needed;

if (reg->hr_bdev)
goto out;
Expand All @@ -1766,7 +1767,7 @@ static ssize_t o2hb_region_dev_write(struct o2hb_region *reg,
if (fd < 0 || fd >= INT_MAX)
goto out;

filp = fget(fd);
filp = fget_light(fd, &fput_needed);
if (filp == NULL)
goto out;

Expand Down Expand Up @@ -1884,7 +1885,7 @@ static ssize_t o2hb_region_dev_write(struct o2hb_region *reg,

out:
if (filp)
fput(filp);
fput_light(filp, fput_needed);
if (inode)
iput(inode);
if (ret < 0) {
Expand Down

0 comments on commit a6bd6f9

Please sign in to comment.