27a7c64217 ("partitions/efi: account for pmbr size in lba")
we started treating bad sizes in lba field of the partition that has the
0xEE (GPT protective) as errors.
However, we may run into these "bad sizes" in the real world if someone
uses dd to copy an image from a smaller disk to a bigger disk. Since
this case used to work (even without using force_gpt), keep it working
and treat the size mismatch as a warning instead of an error.
Reported-by: Josh Triplett <firstname.lastname@example.org>
Reported-by: Sean Paul <email@example.com>
Signed-off-by: Doug Anderson <firstname.lastname@example.org>
Reviewed-by: Josh Triplett <email@example.com>
Acked-by: Davidlohr Bueso <firstname.lastname@example.org>
Tested-by: Artem Bityutskiy <email@example.com>
Signed-off-by: Andrew Morton <firstname.lastname@example.org>
Signed-off-by: Linus Torvalds <email@example.com>