Revert "hmp: fix crash in 'info block -n -v'"
This reverts commit 638b8366200130cc7cf7a026630bc6bfb63b0c4c. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
		
							parent
							
								
									dc881b441d
								
							
						
					
					
						commit
						9419874f70
					
				
							
								
								
									
										3
									
								
								hmp.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								hmp.c
									
									
									
									
									
								
							@ -391,8 +391,7 @@ static void print_block_info(Monitor *mon, BlockInfo *info,
 | 
				
			|||||||
                        inserted->iops_size);
 | 
					                        inserted->iops_size);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* TODO: inserted->image should never be null */
 | 
					    if (verbose) {
 | 
				
			||||||
    if (verbose && inserted->image) {
 | 
					 | 
				
			||||||
        monitor_printf(mon, "\nImages:\n");
 | 
					        monitor_printf(mon, "\nImages:\n");
 | 
				
			||||||
        image_info = inserted->image;
 | 
					        image_info = inserted->image;
 | 
				
			||||||
        while (1) {
 | 
					        while (1) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user