]> 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)
commit360c8ee6fefdb496fffd2c18bb9a96a376a1a804
tree1ab57079bfeb191cde267ccf168f4611e78b8ac4
parentd5919f2a1459083bd0aaede7fc44e945290e44df
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: 0626e6641f6b ("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