summaryrefslogtreecommitdiff
path: root/net/ethernet
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-11-30 15:50:47 +0300
committerSteve French <stfrench@microsoft.com>2021-12-16 12:36:49 -0600
commitef399469d9ceb9f2171cdd79863f9434b9fa3edc (patch)
treed258ecfcb83c02084077874b5260239fb8d7a46b /net/ethernet
parent2585cf9dfaaddf00b069673f27bb3f8530e2039c (diff)
ksmbd: fix error code in ndr_read_int32()
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") Cc: stable@vger.kernel.org # v5.15 Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'net/ethernet')
0 files changed, 0 insertions, 0 deletions