[PATCH] soc: fsl: dpio: Use common error handling code in two functions

Markus Elfring Markus.Elfring at web.de
Sat Jul 4 03:11:02 PDT 2026


>> Use additional labels so that a bit of exception handling can be better
>> reused at the end of two function implementations.
>>
>> This issue was detected by using the Coccinelle software.
> 
> I think it would be better to declare obj and ret as automatic free instead:

Please reconsider such information in more detail.


>     struct dpaa2_io __free(kfree) *obj = kmalloc_obj(*obj);

The application of scope-base resource management can eventually be increased further.

Regards,
Markus


More information about the linux-arm-kernel mailing list