aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@intel.com>2020-01-07 14:04:48 -0800
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2020-01-08 18:11:09 +0200
commita430e67d9a2c62a8c7b315b99e74de02018d0a96 (patch)
tree70711c264122f4a563d9b27360f5fa5411dd28c2 /tools/perf/scripts/python/export-to-postgresql.py
parentMerge tag 'trace-v5.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace (diff)
downloadlinux-dev-a430e67d9a2c62a8c7b315b99e74de02018d0a96.tar.xz
linux-dev-a430e67d9a2c62a8c7b315b99e74de02018d0a96.zip
tpm: Handle negative priv->response_len in tpm_common_read()
The priv->response_length can hold the size of an response or an negative error code, and the tpm_common_read() needs to handle both cases correctly. Changed the type of response_length to signed and accounted for negative value in tpm_common_read(). Cc: stable@vger.kernel.org Fixes: d23d12484307 ("tpm: fix invalid locking in NONBLOCKING mode") Reported-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions