Re: [PATCH v5] env: mmc: Correct partition comparison in mmc_offset_try_partition

2020-11-19 Thread Tom Rini
On Tue, Nov 17, 2020 at 12:32:08PM +0900, Hoyeonjiki Kim wrote: > The function mmc_offset_try_partition searches the MMC partition for > locating environment data, by comparing the partition names with config > "u-boot,mmc-env-parition". However, it only compares the first word-size > bytes (size

[PATCH v5] env: mmc: Correct partition comparison in mmc_offset_try_partition

2020-11-16 Thread Hoyeonjiki Kim
The function mmc_offset_try_partition searches the MMC partition for locating environment data, by comparing the partition names with config "u-boot,mmc-env-parition". However, it only compares the first word-size bytes (size of 'const char *'), which may make the function to find unintended