]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: smbd: Check for iov length on sending the last iov
authorLong Li <longli@microsoft.com>
Tue, 17 Apr 2018 19:17:05 +0000 (12:17 -0700)
committerSteve French <smfrench@gmail.com>
Thu, 19 Apr 2018 03:02:49 +0000 (22:02 -0500)
commit590f8cb249a8e2b60049848abb24b5c472a37c2d
tree9124edf8bd5d58b1c5a6f8dfd7b5f2d241e1f1dd
parent3abe7613ba15e7e82135573eb923cc0a38efbdfd
cifs: smbd: Check for iov length on sending the last iov

When sending the last iov that breaks into smaller buffers to fit the
transfer size, it's necessary to check if this is the last iov.

If this is the latest iov, stop and proceed to send pages.

Signed-off-by: Long Li <longli@microsoft.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
fs/cifs/smbdirect.c