mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	printk: fix failure to return error in devkmsg_poll()
Error value got overwritten instantly. Signed-off-by: Nicolas Kaiser <nikai@nikai.net> Cc: Kay Sievers <kay.sievers@vrfy.org> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									1b2c289b4f
								
							
						
					
					
						commit
						0a285317da
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -601,7 +601,8 @@ static unsigned int devkmsg_poll(struct file *file, poll_table *wait) | |||
| 		/* return error when data has vanished underneath us */ | ||||
| 		if (user->seq < log_first_seq) | ||||
| 			ret = POLLIN|POLLRDNORM|POLLERR|POLLPRI; | ||||
| 		ret = POLLIN|POLLRDNORM; | ||||
| 		else | ||||
| 			ret = POLLIN|POLLRDNORM; | ||||
| 	} | ||||
| 	raw_spin_unlock_irq(&logbuf_lock); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Nicolas Kaiser
						Nicolas Kaiser