]> git.baikalelectronics.ru Git - kernel.git/commit
ksmbd: fix endless loop when encryption for response fails
authorNamjae Jeon <linkinjeon@kernel.org>
Thu, 22 Sep 2022 14:35:43 +0000 (23:35 +0900)
committerSteve French <stfrench@microsoft.com>
Wed, 5 Oct 2022 06:15:44 +0000 (01:15 -0500)
commita5f3592e39d3a80f38e4245cd8ed50fcf5266d80
tree1ab57079bfeb191cde267ccf168f4611e78b8ac4
parentaa9541de4b29e32ca2687b36b100815ea1f88381
ksmbd: fix endless loop when encryption for response fails

If ->encrypt_resp return error, goto statement cause endless loop.
It send an error response immediately after removing it.

Fixes: 34342fc8255d ("cifsd: add server handler for central processing and tranport layers")
Cc: stable@vger.kernel.org
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/server.c