Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83399
b: refs/heads/master
c: ce88cc5
h: refs/heads/master
i:
  83397: 9de325e
  83395: 4122cd2
  83391: 12674d5
v: v3
  • Loading branch information
Jeff Layton authored and Linus Torvalds committed Feb 6, 2008
1 parent cb65537 commit 04a1c03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 941e492bdb1239d2ca8f5736cdfd3ff83d00cb90
refs/heads/master: ce88cc5ed80de746f5bd2d8242291c87e7b87f63
5 changes: 2 additions & 3 deletions trunk/fs/smbfs/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,8 @@ smb_receive(struct smb_sb_info *server, struct smb_request *req)
msg.msg_control = NULL;

/* Dont repeat bytes and count available bufferspace */
rlen = smb_move_iov(&p, &num, iov, req->rq_bytes_recvd);
if (req->rq_rlen < rlen)
rlen = req->rq_rlen;
rlen = min_t(int, smb_move_iov(&p, &num, iov, req->rq_bytes_recvd),
(req->rq_rlen - req->rq_bytes_recvd));

result = kernel_recvmsg(sock, &msg, p, num, rlen, flags);

Expand Down

0 comments on commit 04a1c03

Please sign in to comment.