]> git.baikalelectronics.ru Git - kernel.git/commit
serial: mxs-auart: add missed iounmap() in probe failure and remove
authorChuhong Yuan <hslester96@gmail.com>
Thu, 9 Jul 2020 13:56:08 +0000 (21:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jul 2020 12:44:46 +0000 (14:44 +0200)
commit06ec7c23389cfcac2bc0fb9be818e8482834596e
treeeabb99f677a3ea8fe1aedee8e1e61ac6caecb6b8
parent20fe7db99bd878e753cd7f30419bb3bbf07d3fe9
serial: mxs-auart: add missed iounmap() in probe failure and remove

This driver calls ioremap() in probe, but it misses calling iounmap() in
probe's error handler and remove.
Add the missed calls to fix it.

Fixes: 29069552bbfd ("serial: Add auart driver for i.MX23/28")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200709135608.68290-1-hslester96@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c