From: Miklos Szeredi Date: Tue, 30 Jun 2009 18:06:24 +0000 (+0200) Subject: fuse: fix bad return value in fuse_file_poll() X-Git-Tag: 2.1b_release~12010^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=201fa69a2849536ef2912e8e971ec0b01c04eff4;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git fuse: fix bad return value in fuse_file_poll() Fix fuse_file_poll() which returned a -errno value instead of a poll mask. Signed-off-by: Miklos Szeredi CC: stable@kernel.org --- diff --git a/fs/fuse/file.c b/fs/fuse/file.c index fce6ce6..cbc4640 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -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;