Re: [PATCH] dmaengine: ti-dma-crossbar: Fix error handling in ti_am335x_xbar_route_allocate

From: Markus Elfring
Date: Mon Nov 17 2025 - 09:55:45 EST


> Add proper put_device() calls in all exit paths to fix the reference
> count imbalance.

How do you think about to apply the attribute “__free(put_device)”
in this function implementation?
https://elixir.bootlin.com/linux/v6.18-rc5/source/include/linux/device.h#L1183

Regards,
Markus