summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorVishal Verma <vishal.l.verma@intel.com>2015-10-27 22:58:26 (GMT)
committerDan Williams <dan.j.williams@intel.com>2015-11-02 20:28:07 (GMT)
commit564d501187317f8df79ddda173cf23735cbddd16 (patch)
treea3e5b42f64ee57bfe4df97b6ac405fcb27ee82c2 /samples
parent7379047d5585187d1288486d4627873170d0005a (diff)
downloadlinux-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 'samples')
0 files changed, 0 insertions, 0 deletions