mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	sr9800: Add check for usbnet_get_endpoints
Add check for usbnet_get_endpoints() and return the error if it fails
in order to transfer the error.
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Simon Horman <horms@kernel.org>
Fixes: 19a38d8e0a ("USB2NET : SR9800 : One chip USB2.0 USB2NET SR9800 Device Driver Support")
Link: https://lore.kernel.org/r/20240305075927.261284-1-nichen@iscas.ac.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
			
			
This commit is contained in:
		
							parent
							
								
									41cca0542d
								
							
						
					
					
						commit
						07161b2416
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -737,7 +737,9 @@ static int sr9800_bind(struct usbnet *dev, struct usb_interface *intf)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	data->eeprom_len = SR9800_EEPROM_LEN;
 | 
						data->eeprom_len = SR9800_EEPROM_LEN;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	usbnet_get_endpoints(dev, intf);
 | 
						ret = usbnet_get_endpoints(dev, intf);
 | 
				
			||||||
 | 
						if (ret)
 | 
				
			||||||
 | 
							goto out;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* LED Setting Rule :
 | 
						/* LED Setting Rule :
 | 
				
			||||||
	 * AABB:CCDD
 | 
						 * AABB:CCDD
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue