Kimito Sakata 0eea71e4f2 mmc-utils: Fix for Firmware Version string printing
Added a local buffer to create a NULL terminated string to print the
Firmware Version instead of attempting to print directly from
ext_csd buffer. The last byte of the Firmware Version field may not
be NULL and the next field may also not be which may cause it to
print garbage.

Tested on x86 platform.

Signed-off-by: Kimito Sakata <kimito.sakata@oracle.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Fixes: 89cd01ed86 (mmc_utils: add ffu support)
Link: https://lore.kernel.org/r/20210713053458.1441-1-oracleks043021@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2021-08-24 10:57:33 +02:00
2018-02-16 20:19:35 -05:00
2015-03-24 22:09:55 -04:00
2021-03-30 15:28:34 +02:00
S
Description
No description provided
186 KiB
0 Stars 1 Watchers 0 Forks
2023-07-31 14:04:52 +00:00
Languages
C 99%
Makefile 1%