mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	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 <mszeredi@suse.cz> CC: stable@kernel.org
This commit is contained in:
		
							parent
							
								
									b4c458b3a2
								
							
						
					
					
						commit
						201fa69a28
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1922,7 +1922,7 @@ unsigned fuse_file_poll(struct file *file, poll_table *wait)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	req = fuse_get_req(fc);
 | 
						req = fuse_get_req(fc);
 | 
				
			||||||
	if (IS_ERR(req))
 | 
						if (IS_ERR(req))
 | 
				
			||||||
		return PTR_ERR(req);
 | 
							return POLLERR;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	req->in.h.opcode = FUSE_POLL;
 | 
						req->in.h.opcode = FUSE_POLL;
 | 
				
			||||||
	req->in.h.nodeid = ff->nodeid;
 | 
						req->in.h.nodeid = ff->nodeid;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue