adf18f077010 ("image-flash: Pad empty flash partitions to size") causes
a regression in image-flash.c
Due to a difference in handling of the size argument by pad_file
depending on infile == NULL adf18f077010 is incorrect.
This patch changes the code to call pad_file differently if
infile == NULL
Fixes: adf18f077010 ("image-flash: Pad empty flash partitions to size")
Signed-off-by: Tobias Schramm t.schramm@manjaro.org
adf18f077010 ("image-flash: Pad empty flash partitions to size") causes a regression in image-flash.c Due to a difference in handling of the
size
argument bypad_file
depending oninfile == NULL
adf18f077010 is incorrect. This patch changes the code to callpad_file
differently ifinfile == NULL
Fixes: adf18f077010 ("image-flash: Pad empty flash partitions to size") Signed-off-by: Tobias Schramm t.schramm@manjaro.org