Re: [PATCH v2] dma: ti: k3-udma: Fix error handling for setup_resources() in udma_probe()

2024-03-04 Thread Tom Rini
On Tue, Feb 20, 2024 at 03:34:51PM +0530, Siddharth Vadapalli wrote: > In udma_probe() the return value of setup_resources() is stored in the > u32 "ch_count" member of "struct udma_dev", due to which any negative > return value which indicates an error is masked. > > Fix this by storing the retu

Re: [PATCH v2] dma: ti: k3-udma: Fix error handling for setup_resources() in udma_probe()

2024-02-20 Thread Dan Carpenter
On Tue, Feb 20, 2024 at 03:34:51PM +0530, Siddharth Vadapalli wrote: > In udma_probe() the return value of setup_resources() is stored in the > u32 "ch_count" member of "struct udma_dev", due to which any negative > return value which indicates an error is masked. > > Fix this by storing the retur

[PATCH v2] dma: ti: k3-udma: Fix error handling for setup_resources() in udma_probe()

2024-02-20 Thread Siddharth Vadapalli
In udma_probe() the return value of setup_resources() is stored in the u32 "ch_count" member of "struct udma_dev", due to which any negative return value which indicates an error is masked. Fix this by storing the return value of setup_resources() in the already declared integer variable "ret", fo