cifs: get rid of dup length check in parse_reparse_point()
authorPaulo Alcantara <pc@manguebit.com>
Sat, 6 Jan 2024 23:05:18 +0000 (20:05 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 8 Jan 2024 03:18:00 +0000 (21:18 -0600)
commit8a3c4e44c243308c2364a00f9944c3d6fbdeb125
tree049277c1f23d0e0e070eb5e06fd7a60745e27219
parent6d039984c15d1ea1ca080176df6dfab443e44585
cifs: get rid of dup length check in parse_reparse_point()

smb2_compound_op(SMB2_OP_GET_REPARSE) already checks if ioctl response
has a valid reparse data buffer's length, so there's no need to check
it again in parse_reparse_point().

In order to get rid of duplicate check, validate reparse data buffer's
length also in cifs_query_reparse_point().

Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifssmb.c
fs/smb/client/smb2ops.c