]> git.baikalelectronics.ru Git - 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)
commit9f316c0a2ae198490af9ba170a5e6489903fc00e
tree1e3c7d05a36f2f0df9140b14dda1022437a62bd1
parentb85b51111005a074b1ed91370000cbd5cacd30fc
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