diff options
author | Paulo Alcantara <pc@manguebit.com> | 2024-11-18 16:35:15 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2024-11-21 17:45:50 +0100 |
commit | 9f544d26b15bfc52cf3a6e6a655f759e76c1a01a (patch) | |
tree | ee925908c352408ac586d31c3f4061ab27e4ab28 /fs | |
parent | smb: client: improve compound padding in encryption (diff) | |
download | linux-9f544d26b15bfc52cf3a6e6a655f759e76c1a01a.tar.xz linux-9f544d26b15bfc52cf3a6e6a655f759e76c1a01a.zip |
smb: client: get rid of bounds check in SMB2_ioctl_init()
smb2_set_next_command() no longer squashes request iovs into a single
iov, so the bounds check can be dropped.
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/smb/client/smb2pdu.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/smb/client/smb2pdu.c b/fs/smb/client/smb2pdu.c index ab3a2ca66be3..055236835537 100644 --- a/fs/smb/client/smb2pdu.c +++ b/fs/smb/client/smb2pdu.c @@ -3313,15 +3313,6 @@ SMB2_ioctl_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, return rc; if (indatalen) { - unsigned int len; - - if (WARN_ON_ONCE(smb3_encryption_required(tcon) && - (check_add_overflow(total_len - 1, - ALIGN(indatalen, 8), &len) || - len > MAX_CIFS_SMALL_BUFFER_SIZE))) { - cifs_small_buf_release(req); - return -EIO; - } /* * indatalen is usually small at a couple of bytes max, so * just allocate through generic pool |