diff options
author | Vishal Verma <vishal.l.verma@intel.com> | 2015-10-28 01:58:26 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2015-11-02 23:28:07 +0300 |
commit | 564d501187317f8df79ddda173cf23735cbddd16 (patch) | |
tree | a3e5b42f64ee57bfe4df97b6ac405fcb27ee82c2 /tools/testing/nvdimm | |
parent | 7379047d5585187d1288486d4627873170d0005a (diff) | |
download | linux-564d501187317f8df79ddda173cf23735cbddd16.tar.xz |
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 'tools/testing/nvdimm')
0 files changed, 0 insertions, 0 deletions