[PATCH v2] coresight: trbe: Fix return value check in arm_trbe_register_coresight_cpu()

Leizhen (ThunderTown) thunder.leizhen at huawei.com
Mon Oct 21 20:00:35 PDT 2024



On 2024/10/21 18:25, Markus Elfring wrote:
>>> memory instead of coresight_get_platform_data(), but forgot to update the
>> return value check code accordingly. Fix the incorrect return value check
>> for devm_kzalloc(), which returns NULL instead of ERR_PTR() when it fails.
>>> ---
>>  drivers/hwtracing/coresight/coresight-trbe.c | 2 +-
>> 
> It would have been nice to add a patch version description.

Yes, I forgot the description, thanks. Only the commit message is updated in v2,
especially Fixes. But I'm not going to post v3.

> 
> See also:
> * https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.12-rc4#n321
> 
> * https://lore.kernel.org/all/?q=%22This+looks+like+a+new+version+of+a+previously+submitted+patch%22
> 
> 
> Regards,
> Markus
> .
> 

-- 
Regards,
  Zhen Lei



More information about the linux-arm-kernel mailing list