summaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorRicardo Schwarzmeier <Ricardo.Schwarzmeier@infineon.com>2018-06-26 17:31:45 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-05 09:26:41 +0200
commit61ec14f42c844b7d011e0a939e522d577b2ed672 (patch)
tree3d9c43c1091b389bb1f07b1f5dd2c15d04643552 /scripts/gcc-plugins/cyc_complexity_plugin.c
parentba0797a8016c303e3ab72276e60fb2858c5b4b1a (diff)
tpm: Return the actual size when receiving an unsupported command
commit 36a11029b07ee30bdc4553274d0efea645ed9d91 upstream. The userpace expects to read the number of bytes stated in the header. Returning the size of the buffer instead would be unexpected. Cc: stable@vger.kernel.org Fixes: 095531f891e6 ("tpm: return a TPM_RC_COMMAND_CODE response if command is not implemented") Signed-off-by: Ricardo Schwarzmeier <Ricardo.Schwarzmeier@infineon.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions