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
Fix fuse_file_poll() which returned a -errno value instead of a poll
mask.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
CC: stable@kernel.org
  • Loading branch information
Miklos Szeredi committed Jun 30, 2009
1 parent b4c458b commit 201fa69
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 @@ -1922,7 +1922,7 @@ 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 = ff->nodeid;
Expand Down

0 comments on commit 201fa69

Please sign in to comment.