aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorThierry Reding <[email protected]>2023-07-07 15:26:19 +0200
committerWolfram Sang <[email protected]>2023-08-14 15:33:23 +0200
commitb3497ef404dc3a8a7b8438a8950f46c4cd0e6ccf (patch)
treefd41b5bef70598a3e544b87448b641a61e097b12 /lib/test_fortify/write_overflow-memcpy.c
parent69f035c480d76f12bf061148ccfd578e1099e5fc (diff)
i2c: tegra: Fix failure during probe deferral cleanup
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 <[email protected]> Tested-by: Akhil R <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions