diff options
author | 2015-10-15 12:19:30 -0400 | |
---|---|---|
committer | 2015-10-26 04:57:27 +0100 | |
commit | bc1e49df345cf9be38ba29ead45a12f86ceb5fe2 (patch) | |
tree | ee949ea50dcb7c65f87789c0ec5b33de8b95c871 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ACPI: change acpi_sleep_proc_init() to return void (diff) | |
download | wireguard-linux-bc1e49df345cf9be38ba29ead45a12f86ceb5fe2.tar.xz wireguard-linux-bc1e49df345cf9be38ba29ead45a12f86ceb5fe2.zip |
ACPI / sysfs: correctly check failing memory allocation
Since kobject_create_and_add() can fail under memory pressure,
its return value needs to be checked against NULL before passing
it to sysfs_create_file().
Signed-off-by: Insu Yun <wuninsu@gmail.com>
[ rjw: Subject & changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions