summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorLuca Stefani <luca@osomprivacy.com>2022-12-22 14:10:49 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-04 11:26:28 +0100
commita674cbc885d030acc7ebf4cb399b64e66a576350 (patch)
treeff3bbc0e76353734242972e4abca816a84ddcef1 /tools/perf/scripts/python/export-to-sqlite.py
parent4ca0eb6b2f3add8c5daefb726ce57dc95d103d33 (diff)
pstore: Properly assign mem_type property
commit beca3e311a49cd3c55a056096531737d7afa4361 upstream. If mem-type is specified in the device tree it would end up overriding the record_size field instead of populating mem_type. As record_size is currently parsed after the improper assignment with default size 0 it continued to work as expected regardless of the value found in the device tree. Simply changing the target field of the struct is enough to get mem-type working as expected. Fixes: 9d843e8fafc7 ("pstore: Add mem_type property DT parsing support") Cc: stable@vger.kernel.org Signed-off-by: Luca Stefani <luca@osomprivacy.com> Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20221222131049.286288-1-luca@osomprivacy.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions