]> git.ipfire.org Git - people/arne_f/kernel.git/commit
TTY: serial/mpsc, stop leaking mappings
authorJiri Slaby <jslaby@suse.cz>
Tue, 12 Jan 2016 09:49:32 +0000 (10:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 06:16:21 +0000 (22:16 -0800)
commit1fba6a594cfd1ea0f1fc8a97e22f43def1505d74
tree1e3c7d05a36f2f0df9140b14dda1022437a62bd1
parent75d611bf01737d8456093804377e5cb0a60a9038
TTY: serial/mpsc, stop leaking mappings

When mpsc_routing_base, sdma_intr_base, mpsc_base, sdma_base, and
brg_base are mapped, they are never unmapped. The condition in the
free paths is always 'if (!XXX_base) { unmap }'. Fix it by inverting
the condition.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mpsc.c