[PATCH 4.14 153/165] tpm: Return the actual size when receiving an unsupported command

2018-09-03 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Ricardo Schwarzmeier commit 36a11029b07ee30bdc4553274d0efea645ed9d91 upstream. The userpace expects to read the number of bytes stated in the header. Returning the size of the buffer instead

[PATCH 4.14 153/165] tpm: Return the actual size when receiving an unsupported command

2018-09-03 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Ricardo Schwarzmeier commit 36a11029b07ee30bdc4553274d0efea645ed9d91 upstream. The userpace expects to read the number of bytes stated in the header. Returning the size of the buffer instead