diff options
author | 2015-10-27 16:58:26 -0600 | |
---|---|---|
committer | 2015-11-02 15:28:07 -0500 | |
commit | 564d501187317f8df79ddda173cf23735cbddd16 (patch) | |
tree | a3e5b42f64ee57bfe4df97b6ac405fcb27ee82c2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 4.3-rc6 (diff) | |
download | wireguard-linux-564d501187317f8df79ddda173cf23735cbddd16.tar.xz wireguard-linux-564d501187317f8df79ddda173cf23735cbddd16.zip |
nfit: in acpi_nfit_init, break on a 0-length table
If acpi_nfit_init is called (such as from nfit_test), with an nfit table
that has more memory allocated than it needs (and a similarly large
'size' field, add_tables would happily keep adding null SPA Range tables
filling up all available memory.
Make it friendlier by breaking out if a 0-length header is found in any
of the tables.
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: <linux-acpi@vger.kernel.org>
Cc: <linux-nvdimm@lists.01.org>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions