Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d9248f9 authored by Steve French's avatar Steve French Committed by Greg Kroah-Hartman
Browse files

cifs: Fix null pointer check in cifs_read



[ Upstream commit 9bd21d4b1a767c3abebec203342f3820dcb84662 ]

Coverity scan noted a redundant null check

Coverity-id: 728517
Reported-by: default avatarCoverity <scan-admin@coverity.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Reviewed-by: default avatarShyam Prasad N <nspmangalore@gmail.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8b14d3ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3532,7 +3532,7 @@ cifs_read(struct file *file, char *read_data, size_t read_size, loff_t *offset)
			 * than it negotiated since it will refuse the read
			 * then.
			 */
			if ((tcon->ses) && !(tcon->ses->capabilities &
			if (!(tcon->ses->capabilities &
				tcon->ses->server->vals->cap_large_files)) {
				current_read_size = min_t(uint,
					current_read_size, CIFSMaxBufSize);