mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	padsp: Avoid possible deadlock. Unlocked i->mainloop before returning from default case.
BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=91184 Signed-off-by: Deepak Srivastava <srivastava.d@samsung.com> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
		
							parent
							
								
									dd084acb28
								
							
						
					
					
						commit
						8b3b39c7d8
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -1201,6 +1201,9 @@ static int dsp_open(int flags, int *_errno) {
 | 
				
			||||||
        i->io_flags = PA_IO_EVENT_INPUT | PA_IO_EVENT_OUTPUT;
 | 
					        i->io_flags = PA_IO_EVENT_INPUT | PA_IO_EVENT_OUTPUT;
 | 
				
			||||||
        break;
 | 
					        break;
 | 
				
			||||||
    default:
 | 
					    default:
 | 
				
			||||||
 | 
					        pa_threaded_mainloop_unlock(i->mainloop);
 | 
				
			||||||
 | 
					        fd_info_unref(i);
 | 
				
			||||||
 | 
					        *_errno = EIO;
 | 
				
			||||||
        return -1;
 | 
					        return -1;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue