diff options
author | 2013-12-15 04:10:11 -0800 | |
---|---|---|
committer | 2013-12-23 14:59:03 +0100 | |
commit | 249135d1a2ea3c1719c48d31351413d55d2fdef4 (patch) | |
tree | 19309f9cf047a0c9da189f52fc8e94aeec776e61 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | Linux 3.13-rc4 (diff) | |
download | linux-dev-249135d1a2ea3c1719c48d31351413d55d2fdef4.tar.xz linux-dev-249135d1a2ea3c1719c48d31351413d55d2fdef4.zip |
PNPACPI: check return value of pnp_add_device()
pnp_add_device() may fail so we need to handle errors and avoid leaking
memory. Also, do not use ACPI-specific return codes (AE_OK) but rather
standard one (0).
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions