commit | c55281531282930de0aace46b2d6b22653937818 | [log] [tgz] |
---|---|---|
author | Gao Pan <pandy.gao@nxp.com> | Fri Jan 08 13:33:15 2016 +0800 |
committer | Wolfram Sang <wsa@the-dreams.de> | Sun Jan 10 10:10:28 2016 +0100 |
tree | 5c4acab372f83ec5e1312726e949316b9a8b16e0 | |
parent | a570a27af4d781619dfb5139f3b760e964373c29 [diff] |
i2c: imx: fix i2c resource leak with dma transfer In i2c_imx_dma_xfer(), when dmaengine_submit() returns error, the context goto label err_submit and then return. However, the memory allocated for txdesc has not been freed yet, which leads to resource leak. Signed-off-by: Gao Pan <b54642@freescale.com> Signed-off-by: Fugang Duan <B38611@freescale.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>