diff options
author | Jiri Slaby <jslaby@suse.cz> | 2022-01-24 10:14:24 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-01-26 16:54:48 +0300 |
commit | cd3a4907ee334b40d7aa880c7ab310b154fd5cd4 (patch) | |
tree | f70c32c1b69c438c9266efa7594b840b24aac595 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d56738a38a65ab785557a1ccf8257a486d1b93b6 (diff) | |
download | linux-cd3a4907ee334b40d7aa880c7ab310b154fd5cd4.tar.xz |
mxser: fix xmit_buf leak in activate when LSR == 0xff
When LSR is 0xff in ->activate() (rather unlike), we return an error.
Provided ->shutdown() is not called when ->activate() fails, nothing
actually frees the buffer in this case.
Fix this by properly freeing the buffer in a designated label. We jump
there also from the "!info->type" if now too.
Fixes: 6769140d3047 ("tty: mxser: use the tty_port_open method")
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220124071430.14907-6-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions