Re: [PATCH v4 2/7] OPP: Move refcount and key update for readability in _opp_table_find_key()
From: Viresh Kumar
Date: Tue Aug 26 2025 - 04:24:57 EST
On 26-08-25, 09:26, Marek Szyprowski wrote:
> This doesn't help. I've stared a bit at that code and did some tests
> and it looks that the issue is caused by _opp_table_find_key() returning
> the last opp from opp_list without updating the *key and calling
> opp_get() for it (happens when compare() returns false).
Ahh, right. So `compare()` may never return `true` and in that case we
returned the last OPP of the table earlier.
Thanks.
--
viresh