summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/serial
diff options
context:
space:
mode:
authorNavid Emamdoost <navid.emamdoost@gmail.com>2019-07-19 12:48:45 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-04 12:43:45 +0200
commitea5ab2e422de0ef0fc476fe40f0829abe72684cd (patch)
tree1005ffafb483661ab58c0d5f17a819b9c52f4772 /Documentation/devicetree/bindings/serial
parentf77ebb241ce00ec99ed4e42ff3ab38dd6d1ce6f5 (diff)
8250_lpss: check null return when calling pci_ioremap_bar
pci_ioremap_bar may return null. This is eventually de-referenced at drivers/dma/dw/core.c:1154 and drivers/dma/dw/core.c:1168. A null check is needed to prevent null de-reference. I am adding the check and in case of failure. Thanks to Andy Shevchenko for the hint on the necessity of pci_iounmap when exiting. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20190719174848.24216-1-navid.emamdoost@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/devicetree/bindings/serial')
0 files changed, 0 insertions, 0 deletions