commit | e47b68ba0a24fd69f02857744748e1df320f80a2 | [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 | 669ef7f2dc6832922e51406dd2e4fee130ccd88d [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>