]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Sat, 8 Aug 2020 05:53:12 +0000 (01:53 -0400)
commitd6ac4bee5fa6a95a9b8145eaf6f800a34499dbca
treee6ecb7e720bfd6a10d1a7c9c4db5bb77632b4af6
parent16a54b80437b3ddf45cc09f7a2b9d8b85c3b7655
serial: mxs-auart: add missed iounmap() in probe failure and remove

BugLink: https://bugs.launchpad.net/bugs/1888560
commit d8edf8eb5f6e921fe6389f96d2cd05862730a6ff upstream.

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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/tty/serial/mxs-auart.c