Skip to content
  • Alexander Graf's avatar
    efi_loader: disk: Sanitize exposed devices · 0812d1a0
    Alexander Graf authored
    
    
    When a target device is 0 bytes long, there's no point in exposing it to
    the user. Let's just skip them.
    
    Also, when an offset is passed into the efi disk creation, we should
    remove this offset from the total number of sectors we can handle.
    
    This patch fixes both things.
    
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    0812d1a0