Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'tpmdd-next-20200108' of git://git.infradead.org/users/jjs/linux-tpmdd

Pull more tpmd fixes from Jarkko Sakkinen:
"One critical regression fix (the faulty commit got merged in rc3, but
also marked for stable)"

* tag 'tpmdd-next-20200108' of git://git.infradead.org/users/jjs/linux-tpmdd:
tpm: Handle negative priv->response_len in tpm_common_read()

+2 -2
+1 -1
drivers/char/tpm/tpm-dev-common.c
··· 130 130 priv->response_read = true; 131 131 132 132 ret_size = min_t(ssize_t, size, priv->response_length); 133 - if (!ret_size) { 133 + if (ret_size <= 0) { 134 134 priv->response_length = 0; 135 135 goto out; 136 136 }
+1 -1
drivers/char/tpm/tpm-dev.h
··· 14 14 struct work_struct timeout_work; 15 15 struct work_struct async_work; 16 16 wait_queue_head_t async_wait; 17 - size_t response_length; 17 + ssize_t response_length; 18 18 bool response_read; 19 19 bool command_enqueued; 20 20