commit | cd9a26bfe56344822c75edbc771526099efe63e6 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Sat Nov 20 13:56:02 2021 +0100 |
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Fri Nov 26 21:30:59 2021 +0100 |
tree | 91a10fc83f6832c0eea7457ffc645b35dcd55973 | |
parent | 3f73e79de83ecc78b9a9c823b8118ab1fba63b0a [diff] |
efi_loader: efi_disk_register() should not fail Our algorithm for creating USB device paths may lead to duplicate device paths which result in efi_disk_register() failing. Instead we should just skip devices that cannot be registered as EFI block devices. Fix a memory leak in efi_disk_add_dev() caused by the duplicate device path. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>