This is a note to let you know that I've just added the patch titled [PATCH stable 5.8 07/25] chelsio/chtls: correct function return and return type to the 5.8-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: chelsio-chtls-correct-function-return-and-return-type.patch and it can be found in the queue-5.8 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From foo@baz Sat Oct 24 10:56:27 AM CEST 2020 From: Vinay Kumar Yadav <vinay.yadav@xxxxxxxxxxx> Date: Mon, 19 Oct 2020 17:20:24 +0530 Subject: [PATCH stable 5.8 07/25] chelsio/chtls: correct function return and return type From: Vinay Kumar Yadav <vinay.yadav@xxxxxxxxxxx> [ Upstream commit 8580a61aede28d441e1c80588803411ee86aa299 ] csk_mem_free() should return true if send buffer is available, false otherwise. Fixes: 3b8305f5c844 ("crypto: chtls - wait for memory sendmsg, sendpage") Signed-off-by: Vinay Kumar Yadav <vinay.yadav@xxxxxxxxxxx> Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/crypto/chelsio/chtls/chtls_io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/crypto/chelsio/chtls/chtls_io.c +++ b/drivers/crypto/chelsio/chtls/chtls_io.c @@ -902,9 +902,9 @@ static int chtls_skb_copy_to_page_nocach return 0; } -static int csk_mem_free(struct chtls_dev *cdev, struct sock *sk) +static bool csk_mem_free(struct chtls_dev *cdev, struct sock *sk) { - return (cdev->max_host_sndbuf - sk->sk_wmem_queued); + return (cdev->max_host_sndbuf - sk->sk_wmem_queued > 0); } static int csk_wait_memory(struct chtls_dev *cdev, Patches currently in stable-queue which might be from vinay.yadav@xxxxxxxxxxx are queue-5.8/chelsio-chtls-fix-panic-when-server-is-on-ipv6.patch queue-5.8/chelsio-chtls-fix-writing-freed-memory.patch queue-5.8/chelsio-chtls-fix-socket-lock.patch queue-5.8/chelsio-chtls-correct-netdevice-for-vlan-interface.patch queue-5.8/chelsio-chtls-correct-function-return-and-return-type.patch queue-5.8/chelsio-chtls-fix-panic-when-listen-on-multiadapter.patch