Skip to content

Commit

Permalink
fuse: fix bad return value in fuse_file_poll()
Browse files Browse the repository at this point in the history
commit 201fa69 upstream.

Fix fuse_file_poll() which returned a -errno value instead of a poll
mask.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Miklos Szeredi authored and Greg Kroah-Hartman committed Jul 20, 2009
1 parent bfa4144 commit f4d8cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/fuse/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1867,7 +1867,7 @@ static unsigned fuse_file_poll(struct file *file, poll_table *wait)

req = fuse_get_req(fc);
if (IS_ERR(req))
return PTR_ERR(req);
return POLLERR;

req->in.h.opcode = FUSE_POLL;
req->in.h.nodeid = get_node_id(inode);
Expand Down

0 comments on commit f4d8cd6

Please sign in to comment.