OSDN Git Service

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)
commitd8edf8eb5f6e921fe6389f96d2cd05862730a6ff
treeeabb99f677a3ea8fe1aedee8e1e61ac6caecb6b8
parentf38278e9b810b06aff2981d505267be984423ba3
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: 47d37d6f94cc ("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