Rafał Miłecki 7a1e1b87e1 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>
Signed-off-by: maurerr <mariusd84@gmail.com>
2021-09-01 08:07:59 +00:00
..
2021-09-01 08:07:13 +00:00
2021-09-01 08:06:55 +00:00
2021-09-01 08:07:42 +00:00
2021-09-01 08:07:13 +00:00
2018-11-25 19:23:03 +01:00
2019-07-08 16:42:26 +02:00
2021-09-01 08:07:13 +00:00
2020-03-14 13:20:06 +00:00
2019-02-26 23:20:04 +01:00
2021-09-01 08:07:25 +00:00
2021-09-01 08:07:13 +00:00
2021-09-01 08:06:53 +00:00
2020-04-09 22:09:04 +02:00
2021-09-01 08:06:56 +00:00
2021-09-01 08:07:25 +00: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-09-01 08:07:44 +00:00
2020-04-09 22:09:13 +02:00
2021-09-01 08:07:32 +00:00