mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	PM / devfreq: fix duplicated kfree on devfreq pointer
device_unregister() calls kfree already. Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
This commit is contained in:
		
							parent
							
								
									3e1d7fb0d2
								
							
						
					
					
						commit
						ac4b281176
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -603,7 +603,6 @@ struct devfreq *devfreq_add_device(struct device *dev,
 | 
			
		|||
err_init:
 | 
			
		||||
	list_del(&devfreq->node);
 | 
			
		||||
	device_unregister(&devfreq->dev);
 | 
			
		||||
	kfree(devfreq);
 | 
			
		||||
err_out:
 | 
			
		||||
	return ERR_PTR(err);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue