Re: [PATCH] fw_env: fix reading NVMEM device's "compatible" value

2024-01-06 Thread Tom Rini
On Tue, Dec 12, 2023 at 06:33:27PM +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > Call to fread() was changed to check for return value. The problem is it > can't be checked for returning 1 (as it is) to determine success. > > We call fread() with buffer size as "size" argument. Reading

[PATCH] fw_env: fix reading NVMEM device's "compatible" value

2023-12-12 Thread Rafał Miłecki
From: Rafał Miłecki Call to fread() was changed to check for return value. The problem is it can't be checked for returning 1 (as it is) to determine success. We call fread() with buffer size as "size" argument. Reading any "compatible" value shorter than buffer size will result in returning 0 e