mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Check for fd failure properly
This commit is contained in:
		
							parent
							
								
									6cfe47d1d8
								
							
						
					
					
						commit
						9ec9edc40d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -242,7 +242,7 @@ static size_t explicit_find_gpus(struct wlr_session *session,
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		ret[i] = open_if_kms(session, ptr);
 | 
							ret[i] = open_if_kms(session, ptr);
 | 
				
			||||||
		if (ret[i] <= 0) {
 | 
							if (ret[i] < 0) {
 | 
				
			||||||
			wlr_log(L_ERROR, "Unable to open %s as DRM device", ptr);
 | 
								wlr_log(L_ERROR, "Unable to open %s as DRM device", ptr);
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			++i;
 | 
								++i;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue