Re: [PATCH v2] mmc: fix signed vs unsigned compare in read check in _spl_load()

2024-08-28 Thread Tom Rini
On Wed, 31 Jul 2024 09:09:00 -0400, Franco Venturi wrote: > Fix signed vs unsigned compare in read check in _spl_load() > > Issue: when info->read() returns a negative value because of an error, >the comparison of 'read' (signed) with 'sizeof(*header)' >(unsigned silently converts

RE: [PATCH v2] mmc: fix signed vs unsigned compare in read check in _spl_load()

2024-07-31 Thread Peng Fan
> Subject: [PATCH v2] mmc: fix signed vs unsigned compare in read > check in _spl_load() > > Fix signed vs unsigned compare in read check in _spl_load() > > Issue: when info->read() returns a negative value because of an error, >the comparison of 'read&#

Re: [PATCH v2] mmc: fix signed vs unsigned compare in read check in _spl_load()

2024-07-31 Thread Sean Anderson
On 7/31/24 09:09, Franco Venturi wrote: Fix signed vs unsigned compare in read check in _spl_load() Issue: when info->read() returns a negative value because of an error, the comparison of 'read' (signed) with 'sizeof(*header)' (unsigned silently converts the negative value into

[PATCH v2] mmc: fix signed vs unsigned compare in read check in _spl_load()

2024-07-31 Thread Franco Venturi
Fix signed vs unsigned compare in read check in _spl_load() Issue: when info->read() returns a negative value because of an error, the comparison of 'read' (signed) with 'sizeof(*header)' (unsigned silently converts the negative value into a very large unsigned value and the c