aboutsummaryrefslogtreecommitdiffstats
path: root/lib/overflow_kunit.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2022-05-22 12:22:07 +0000
committerWolfram Sang <[email protected]>2022-06-14 20:11:54 +0000
commitde87b603b0919e31578c8fa312a3541f1fb37e1c (patch)
treed6ea71426affa3a560d64599ca9149e14fa95a38 /lib/overflow_kunit.c
parenti2c: designware: Use standard optional ref clock implementation (diff)
downloadkernel-de87b603b0919e31578c8fa312a3541f1fb37e1c.tar.gz
kernel-de87b603b0919e31578c8fa312a3541f1fb37e1c.zip
i2c: mediatek: Fix an error handling path in mtk_i2c_probe()
The clsk are prepared, enabled, then disabled. So if an error occurs after the disable step, they are still prepared. Add an error handling path to unprepare the clks in such a case, as already done in the .remove function. Fixes: 8b4fc246c3ff ("i2c: mediatek: Optimize master_xfer() and avoid circular locking") Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: Qii Wang <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'lib/overflow_kunit.c')
0 files changed, 0 insertions, 0 deletions