[PATCH V2 2/2] ARM: sun9i: smp: fix return code check of of_property_match_string
Arnd Bergmann
arnd at arndb.de
Tue Jan 2 07:49:07 PST 2024
On Tue, Jan 2, 2024, at 15:59, Chen-Yu Tsai wrote:
> On Fri, Dec 29, 2023 at 3:39 AM Stefan Wahren <wahrenst at gmx.net> wrote:
>>
>> of_property_match_string returns an int; either an index from 0 or
>> greater if successful or negative on failure. Even it's very
>> unlikely that the DT CPU node contains multiple enable-methods
>> these checks should be fixed.
>>
>> This patch was inspired by the work of Nick Desaulniers.
>>
>> Link: https://lore.kernel.org/lkml/20230516-sunxi-v1-1-ac4b9651a8c1@google.com/T/
>> Cc: Nick Desaulniers <ndesaulniers at google.com>
>> Signed-off-by: Stefan Wahren <wahrenst at gmx.net>
>
> Reviewed-by: Chen-Yu Tsai <wens at csie.org>
>
> Arnd, would it be possible to apply the two fixes directly to the soc tree?
Yes, I've merged them into the arm/fixes branch now. These
are currently the only fixes I have queued up but I should
be able to send them before the v6.7 release.
Arnd
More information about the linux-arm-kernel
mailing list