commit | 9aa613674f89d01248ae2e4afe691b515ff8fbb6 | [log] [tgz] |
---|---|---|
author | Peter Rosin <peda@axentia.se> | Wed Jun 20 11:43:23 2018 +0200 |
committer | Wolfram Sang <wsa@the-dreams.de> | Fri Jun 29 08:19:52 2018 +0200 |
tree | f38b5356e2e3f24673760f47bcea33257c588d48 | |
parent | 2173ed0adc7f0473e6b6ad636d8684a0d82da5e9 [diff] |
i2c: smbus: kill memory leak on emulated and failed DMA SMBus xfers If DMA safe memory was allocated, but the subsequent I2C transfer fails the memory is leaked. Plug this leak. Fixes: 8a77821e74d6 ("i2c: smbus: use DMA safe buffers for emulated SMBus transactions") Signed-off-by: Peter Rosin <peda@axentia.se> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Cc: stable@kernel.org