diff options
author | 2022-02-23 17:47:17 +0200 | |
---|---|---|
committer | 2022-03-03 00:30:14 +0100 | |
commit | 898c0a15425a5bcaa8d44bd436eae5afd2483796 (patch) | |
tree | b21a03db01dee66b3ab9d25d70ee418a41afaa15 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | auxdisplay: lcd2s: Fix lcd2s_redefine_char() feature (diff) | |
download | wireguard-linux-898c0a15425a5bcaa8d44bd436eae5afd2483796.tar.xz wireguard-linux-898c0a15425a5bcaa8d44bd436eae5afd2483796.zip |
auxdisplay: lcd2s: Fix memory leak in ->remove()
Once allocated the struct lcd2s_data is never freed.
Fix the memory leak by switching to devm_kzalloc().
Fixes: 8c9108d014c5 ("auxdisplay: add a driver for lcd2s character display")
Cc: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions