2021-11-30 21:50 GMT+09:00, Dan Carpenter <dan.carpenter@xxxxxxxxxx>: > This is a failure path and it should return -EINVAL instead of success. > Otherwise it could result in the caller using uninitialized memory. > > Fixes: 303fff2b8c77 ("ksmbd: add validation for ndr read/write functions") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Acked-by: Namjae Jeon <linkinjeon@xxxxxxxxxx> Thanks!