diff options
author | Gao Pan | 2016-01-08 06:33:15 +0100 |
---|---|---|
committer | Wolfram Sang | 2016-01-10 10:10:28 +0100 |
commit | c55281531282930de0aace46b2d6b22653937818 (patch) | |
tree | 5c4acab372f83ec5e1312726e949316b9a8b16e0 /include/linux/i2c.h | |
parent | dt-bindings: i2c: eeprom: add another EEPROM device (diff) | |
download | kernel-qcow2-linux-c55281531282930de0aace46b2d6b22653937818.tar.gz kernel-qcow2-linux-c55281531282930de0aace46b2d6b22653937818.tar.xz kernel-qcow2-linux-c55281531282930de0aace46b2d6b22653937818.zip |
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>
Diffstat (limited to 'include/linux/i2c.h')
0 files changed, 0 insertions, 0 deletions