aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJiri Slaby <[email protected]>2022-01-24 08:14:24 +0100
committerGreg Kroah-Hartman <[email protected]>2022-01-26 14:54:48 +0100
commitcd3a4907ee334b40d7aa880c7ab310b154fd5cd4 (patch)
treef70c32c1b69c438c9266efa7594b840b24aac595 /tools/perf/scripts/python/bin
parentd56738a38a65ab785557a1ccf8257a486d1b93b6 (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions