summaryrefslogtreecommitdiff
path: root/include/asm-generic/div64.h
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2022-01-24 08:14:24 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-26 14:54:48 +0100
commitcd3a4907ee334b40d7aa880c7ab310b154fd5cd4 (patch)
treef70c32c1b69c438c9266efa7594b840b24aac595 /include/asm-generic/div64.h
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 <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 'include/asm-generic/div64.h')
0 files changed, 0 insertions, 0 deletions