diff options
author | Krzysztof Kozlowski <k.kozlowski.k@gmail.com> | 2015-07-09 15:21:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-24 00:05:53 +0200 |
commit | 97a60eac33f663d2150ee1b3c69253d87ba53dff (patch) | |
tree | 14465d948b30395805aec179f4970bb42118759a /drivers/tty/serial/etraxfs-uart.c | |
parent | n_tty: signal and flush atomically (diff) | |
download | linux-97a60eac33f663d2150ee1b3c69253d87ba53dff.tar.xz linux-97a60eac33f663d2150ee1b3c69253d87ba53dff.zip |
serial: amba-pl011: Fix devm_ioremap_resource return value check
Value returned by devm_ioremap_resource() was checked for non-NULL but
devm_ioremap_resource() returns IOMEM_ERR_PTR, not NULL. In case of
error this could lead to dereference of ERR_PTR.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Cc: <stable@vger.kernel.org>
Fixes: 3873e2d7f63a ("drivers: PL011: refactor pl011_probe()")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/etraxfs-uart.c')
0 files changed, 0 insertions, 0 deletions