Re: [PATCH v2] i2c: tegra: Fix failure during probe deferral cleanup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 7/17/23 12:15, Akhil R wrote:
If the driver fails to obtain a DMA channel, it will initiate cleanup
and try to release the DMA channel that couldn't be retrieved. This will
cause a crash because the cleanup will try to dereference an ERR_PTR()-
encoded error code.

However, there's nothing to clean up at this point yet, so we can avoid
this by simply resetting the DMA channel to NULL instead of storing the
error code.

Fixes: fcc8a89a1c83 ("i2c: tegra: Share same DMA channel for RX and TX")
Signed-off-by: Thierry Reding mailto:treding@xxxxxxxxxx

This fixed the crash issue seen when there is no dmas property in the device tree.

Tested-by: Akhil R <akhilrajeev@xxxxxxxxxx>

The kernel crash issue has been fixed with ACPI based kernel on T241 (Server) platform.

Tested-by: Shanker Donthineni <sdonthineni@xxxxxxxxxx>



[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux