cifsd: add the check if nvec is zero
authorNamjae Jeon <namjae.jeon@samsung.com>
Wed, 26 May 2021 06:31:37 +0000 (15:31 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Wed, 26 May 2021 09:12:33 +0000 (18:12 +0900)
commit41a7848a01b3f4401b8b87815e643584b86895f2
tree90328da7697f4c7b45eceb5c3139ab6f9fe6646d
parent522dcc76269fcc27a3a0128ca7699270fae61b60
cifsd: add the check if nvec is zero

Dan Carpenter pointed out that memory can be corrupted when nvec is zero.
This patch add the check to prevent it.

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/auth.c