Skip to content
Commit 3ace6891 authored by Laurentiu Tudor's avatar Laurentiu Tudor Committed by Wolfram Sang
Browse files

i2c: imx: don't leak the i2c adapter on error



Make sure to free the i2c adapter on the error exit path.

Signed-off-by: default avatarLaurentiu Tudor <laurentiu.tudor@nxp.com>
Reviewed-by: default avatarMukesh Ojha <mojha@codeaurora.org>
Reviewed-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fixes: e1ab9a46 ("i2c: imx: improve the error handling in i2c_imx_dma_request()")
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 79a3aaa7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment