mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	loop: fix error return code in loop_add()
Fix to return a negative error code from the error handling case, as returned elsewhere in this function. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
		
							parent
							
								
									d137c8306c
								
							
						
					
					
						commit
						183cfb5720
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -1623,6 +1623,7 @@ static int loop_add(struct loop_device **l, int i) | |||
| 		goto out_free_dev; | ||||
| 	i = err; | ||||
| 
 | ||||
| 	err = -ENOMEM; | ||||
| 	lo->lo_queue = blk_alloc_queue(GFP_KERNEL); | ||||
| 	if (!lo->lo_queue) | ||||
| 		goto out_free_dev; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Wei Yongjun
						Wei Yongjun