>> 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
