Make sure work->sess is not NULL when calling check_sign_req() to
prevent NULL pointer dereference. This was causing kernel panic when
using signing and pysmb (SMB1) as client.
Fixes: c670a9a0d35f ("ksmbd: verify and set signature for compound request/response")
Signed-off-by: Fredrik Ternerot fredrikt@axis.com
Signed-off-by: Namjae Jeon namjae.jeon@samsung.com
Make sure work->sess is not NULL when calling check_sign_req() to prevent NULL pointer dereference. This was causing kernel panic when using signing and pysmb (SMB1) as client.
Fixes: c670a9a0d35f ("ksmbd: verify and set signature for compound request/response") Signed-off-by: Fredrik Ternerot fredrikt@axis.com Signed-off-by: Namjae Jeon namjae.jeon@samsung.com