]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
um: chan_xterm: Fix fd leak
authorAnton Ivanov <anton.ivanov@cambridgegreys.com>
Mon, 7 Dec 2020 17:19:40 +0000 (17:19 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Dec 2020 12:47:01 +0000 (13:47 +0100)
commit6774d7c562bce6d2ae166db41d2eb3a8342eae8d
tree33b54a93627fe2f8065bd21f5247e471df54b966
parentba4231d5acf213e3769eff504c237ef2f9b2a5fa
um: chan_xterm: Fix fd leak

[ Upstream commit 9431f7c199ab0d02da1482d62255e0b4621cb1b5 ]

xterm serial channel was leaking a fd used in setting up the
port helper

This bug is prehistoric - it predates switching to git. The "fixes"
header here is really just to mark all the versions we would like this to
apply to which is "Anything from the Cretaceous period onwards".

No dinosaurs were harmed in fixing this bug.

Fixes: b40997b872cd ("um: drivers/xterm.c: fix a file descriptor leak")
Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/um/drivers/xterm.c