Rafał Miłecki d4f2c2914a firmware-utils: mkmylofw: fix blocks padding
The old code didn't make sense as it was using "len" variable which was
guaranteed to be always 0. Loop right above broken code is:
while (len > 0) { }

With this recent ALIGN macro fix this resulted in subtracting block size
from 0 and calling write_out_padding() with a negative length.

To calculate amount of bytes needed for padding & alignment it should be
enough to use % 4.

Fixes: a2f66229450d ("firmware-utils: fix few random warnings")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2021-04-13 14:00:49 +02:00
..
2020-11-21 18:49:08 +01:00
2020-08-30 22:21:34 +02:00
2021-02-28 00:09:09 +00:00
2020-11-21 18:48:39 +01:00
2018-11-25 19:23:03 +01:00
2019-07-08 16:42:26 +02:00
2020-11-21 18:49:17 +01:00
2020-03-14 13:20:06 +00:00
2019-02-26 23:20:04 +01:00
2020-12-31 10:03:21 +01:00
2020-11-21 18:49:27 +01:00
2020-08-23 19:40:32 +02:00
2020-04-09 22:09:04 +02:00
2020-09-02 16:29:22 +02:00
2020-12-31 10:03:21 +01:00
2019-11-24 21:35:45 +01:00
2020-02-18 21:39:14 +01:00
2019-03-10 21:36:28 +01:00
2021-03-01 16:39:17 +00:00
2020-04-09 22:09:13 +02:00
2021-01-30 18:14:50 -10:00