diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-03-25 12:44:13 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-06 07:59:24 -0700 |
commit | f2fa919e04df73c81f0943ed4e50ef4c77d495c6 (patch) | |
tree | 66513434ae9cb6df82afd9129437fc565ca1dea0 /drivers/s390/cio/device.c | |
parent | 1e3fe0a434d0a08c4170b02c22c5c2251a2d2318 (diff) | |
download | lwn-f2fa919e04df73c81f0943ed4e50ef4c77d495c6.tar.gz lwn-f2fa919e04df73c81f0943ed4e50ef4c77d495c6.zip |
spi: dw: Don't call kfree for memory allocated by devm_kzalloc
commit c63f5da00845143de621e991ea186be0829647ee upstream.
With devm_kzalloc, the memory is automatically freed when spi_device detach from
the bus.
Fixes: commit 43f627ac9de42 (spi: dw: fix memory leak on error path)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/s390/cio/device.c')
0 files changed, 0 insertions, 0 deletions