Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100398
b: refs/heads/master
c: 743115e
h: refs/heads/master
v: v3
  • Loading branch information
Jonathan Corbet committed Jul 2, 2008
1 parent 4b4d2ce commit 1463852
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: b7e3e1fbf69d1b6abfd337460ea17d7230e3a6e5
refs/heads/master: 743115ee05f09f356d86763316acf627a7f5a6b3
10 changes: 6 additions & 4 deletions trunk/drivers/message/i2o/i2o_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1084,15 +1084,17 @@ static int cfg_fasync(int fd, struct file *fp, int on)
{
ulong id = (ulong) fp->private_data;
struct i2o_cfg_info *p;
int ret = -EBADF;

lock_kernel();
for (p = open_files; p; p = p->next)
if (p->q_id == id)
break;

if (!p)
return -EBADF;

return fasync_helper(fd, fp, on, &p->fasync);
if (p)
ret = fasync_helper(fd, fp, on, &p->fasync);
unlock_kernel();
return ret;
}

static int cfg_release(struct inode *inode, struct file *file)
Expand Down

0 comments on commit 1463852

Please sign in to comment.