commit | 601db1f1a39d114c15e475ad6d40aabd1d23aa5b | [log] [tgz] |
---|---|---|
author | Alexander Graf <agraf@suse.de> | Fri Aug 05 14:51:47 2016 +0200 |
committer | Tom Rini <trini@konsulko.com> | Mon Aug 08 13:33:00 2016 -0400 |
tree | 137a50d9ecc5a3a36614647c0e63b178c02b9cf4 | |
parent | 34118e72258587d4995c2f1bcf7b7d7b53a11ec0 [diff] |
efi_loader: disk: Sanitize exposed devices 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: Alexander Graf <agraf@suse.de>