mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	init: return proper error code in do_mounts_rd()
In do_mounts_rd() if memory cannot be allocated, return -ENOMEM. Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									1a530a6f23
								
							
						
					
					
						commit
						ea611b2699
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -64,7 +64,7 @@ identify_ramdisk_image(int fd, int start_block, decompress_fn *decompressor)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	buf = kmalloc(size, GFP_KERNEL);
 | 
						buf = kmalloc(size, GFP_KERNEL);
 | 
				
			||||||
	if (!buf)
 | 
						if (!buf)
 | 
				
			||||||
		return -1;
 | 
							return -ENOMEM;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	minixsb = (struct minix_super_block *) buf;
 | 
						minixsb = (struct minix_super_block *) buf;
 | 
				
			||||||
	ext2sb = (struct ext2_super_block *) buf;
 | 
						ext2sb = (struct ext2_super_block *) buf;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue