mirror of
				https://git.proxmox.com/git/grub2
				synced 2025-11-04 02:06:28 +00:00 
			
		
		
		
	* grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
freeing.
This commit is contained in:
		
							parent
							
								
									d336f65225
								
							
						
					
					
						commit
						1d80c62a8f
					
				@ -1,3 +1,8 @@
 | 
			
		||||
2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
 | 
			
		||||
 | 
			
		||||
	* grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
 | 
			
		||||
	freeing.
 | 
			
		||||
 | 
			
		||||
2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
 | 
			
		||||
 | 
			
		||||
	* util/grub-mkconfig_lib.in (print_option_help): Properly redirect
 | 
			
		||||
 | 
			
		||||
@ -861,6 +861,7 @@ open_device (const grub_disk_t disk, grub_disk_addr_t sector, int flags,
 | 
			
		||||
    else
 | 
			
		||||
      {
 | 
			
		||||
	free (data->dev);
 | 
			
		||||
	data->dev = 0;
 | 
			
		||||
	if (data->fd != -1)
 | 
			
		||||
	  {
 | 
			
		||||
	    if (data->access_mode == O_RDWR || data->access_mode == O_WRONLY)
 | 
			
		||||
@ -941,6 +942,7 @@ open_device (const grub_disk_t disk, grub_disk_addr_t sector, int flags,
 | 
			
		||||
  else
 | 
			
		||||
    {
 | 
			
		||||
      free (data->dev);
 | 
			
		||||
      data->dev = 0;
 | 
			
		||||
      if (data->fd != -1)
 | 
			
		||||
	{
 | 
			
		||||
	    if (data->access_mode == O_RDWR || data->access_mode == O_WRONLY)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user