commit | 6734330654dac550f12e932996b868c6d0dcb421 | [log] [tgz] |
---|---|---|
author | Kangjie Lu <kjlu@umn.edu> | Thu Mar 14 02:21:51 2019 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Mar 19 15:37:43 2019 +0100 |
tree | 114dd5fdf29e9d09dbecc8bac7146e965f25d508 | |
parent | c85be041065c0be8bc48eda4c45e0319caf1d0e5 [diff] |
tty: mxs-auart: fix a potential NULL pointer dereference In case ioremap fails, the fix returns -ENOMEM to avoid NULL pointer dereferences. Multiple places use port.membase. Signed-off-by: Kangjie Lu <kjlu@umn.edu> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>