diff options
| author | Alexey Kardashevskiy <[email protected]> | 2017-03-27 19:27:37 +1100 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2017-04-28 21:26:53 +1000 |
| commit | 82eae1afbbdcaf2d716f88025736dc2d6f7afbf0 (patch) | |
| tree | 935021c4c48b7d7a3d25223ecc62119b6846ad1d /tools/perf/util/c++/clang-test.cpp | |
| parent | b71c9ffb140556004caf7ba27083f9d90ae8d14b (diff) | |
powerpc/powernv: Check kzalloc() return value in pnv_pci_table_alloc
pnv_pci_table_alloc() ignores possible failure from kzalloc_node(),
this adds a check. There are 2 callers of pnv_pci_table_alloc(),
one already checks for tbl!=NULL, this adds WARN_ON() to the other path
which only happens during boot time in IODA1 and not expected to fail.
Signed-off-by: Alexey Kardashevskiy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang-test.cpp')
0 files changed, 0 insertions, 0 deletions