diff options
| author | Navid Emamdoost <[email protected]> | 2019-07-19 12:48:45 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-09-04 12:43:45 +0200 |
| commit | ea5ab2e422de0ef0fc476fe40f0829abe72684cd (patch) | |
| tree | 1005ffafb483661ab58c0d5f17a819b9c52f4772 /tools/perf/scripts/python | |
| parent | f77ebb241ce00ec99ed4e42ff3ab38dd6d1ce6f5 (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 <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions