summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRoss Zwisler <ross.zwisler@linux.intel.com>2018-02-27 20:29:52 +0300
committerDan Williams <dan.j.williams@intel.com>2018-03-06 22:06:41 +0300
commit1526f9e2ac1df62106c15a18fd6895258c579c90 (patch)
tree43f078e0cb00079e8e675501ab6b686cb4bccae4 /tools/perf/scripts/python
parent9741a559971856fca61a83840b558b4f94500d89 (diff)
downloadlinux-1526f9e2ac1df62106c15a18fd6895258c579c90.tar.xz
nfit_test: prevent parsing error of nfit_test.0
When you load nfit_test you currently see the following error in dmesg: nfit_test nfit_test.0: found a zero length table '0' parsing nfit This happens because when we parse the nfit_test.0 table via acpi_nfit_init(), we specify a size of nfit_test->nfit_size. For the first pass through nfit_test.0 where (t->setup_hotplug == 0) this is the size of the entire buffer we allocated, including space for the hot plug structures, not the size that we've actually filled in. Fix this by only trying to parse the size of the structures that we've filled in. Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions