summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorRuoyu Wang <ruoyuw560@gmail.com>2026-08-15 23:17:20 +0800
committerAndi Shyti <andi.shyti@kernel.org>2026-08-19 08:48:29 +0200
commit67db795c498c273851c2be081a45bbe535141046 (patch)
tree92e7566bd7aad48e9506a0045b2ed8b126ec7ff9 /scripts/objdiff
parentccc3128e0e4e1a9afe6d39720ed2609cf9133215 (diff)
downloadlinux-next-67db795c498c273851c2be081a45bbe535141046.tar.gz
linux-next-67db795c498c273851c2be081a45bbe535141046.zip
i2c: mxs: fix DMA channel leak on probe error
mxs_i2c_probe() requests an exclusive DMA channel before resetting the controller and registering the I2C adapter. If either later operation fails, probe returns without releasing the channel because the remove callback is not invoked after a failed probe. Use devm_dma_request_chan() so the device core releases the channel on probe failure and driver detach. Remove the manual release from the remove callback because the channel is now device-managed. This issue was found by a static analysis checker and confirmed by manual source review. Fixes: 62885f59a261 ("MXS: Implement DMA support into mxs-i2c") Assisted-by: unnamed:claude-opus-4.8 typestate Signed-off-by: Ruoyu Wang <ruoyuw560@gmail.com> Cc: <stable@vger.kernel.org> # v3.7+ Reviewed-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Link: https://patch.msgid.link/20260815151720.3757460-1-ruoyuw560@gmail.com
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions