diff options
author | Kangjie Lu <[email protected]> | 2019-03-15 02:29:43 -0500 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2019-04-04 11:49:05 +0100 |
commit | f0d14edd2ba43b995bef4dd5da5ffe0ae19321a1 (patch) | |
tree | 9b6994ac065b5caea88612d052c1215fe7fd74bc /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 954b4b752a4c4e963b017ed8cef4c453c5ed308d (diff) |
PCI: rcar: Fix a potential NULL pointer dereference
In case __get_free_pages() fails and returns NULL, fix the return
value to -ENOMEM and release resources to avoid dereferencing a
NULL pointer.
Signed-off-by: Kangjie Lu <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Reviewed-by: Ulrich Hecht <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions