git: stand - cleanup efi boot, fix corrupted free()

Matthew Dillon dillon at crater.dragonflybsd.org
Fri May 19 23:36:08 PDT 2023


commit 3d9fb4d44e4d8c28731888f3b27137c5c77dd097
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri May 19 23:32:51 2023 -0700

    stand - cleanup efi boot, fix corrupted free()
    
    * When freeing failed load resources, two of the resources allocated
      by boot services were being freed via free(), causing a panic.
    
    * Do not complain if a path component is not a directory, simply fail.
      Remove unnecessary noise from alternative config file tests.
    
    * Pre-assign NULL to pointers so they are NULL during error paths.
      Target procedures do not necessarily set them in error paths.
    
    * Display EFI errors in hex, not virtually unreadable decimal.
    
    * Cleanup for readability.

Summary of changes:
 stand/boot/common/ufsread.c       |   4 +-
 stand/boot/efi/boot1/boot1.c      | 105 +++++++++++++++++++++++---------------
 stand/boot/efi/boot1/ufs_module.c |   1 +
 3 files changed, 65 insertions(+), 45 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3d9fb4d44e4d8c28731888f3b27137c5c77dd097


-- 
DragonFly BSD source repository


More information about the Commits mailing list