Re: [PATCH] ksmbd: fix error code in ndr_read_int32()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!



[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux