projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d816255
)
[CIFS] Fix trivial sparse warning with asyn i/o patch
author
Steve French
<stevef@smf-gateway.(none)>
Fri, 23 Mar 2012 21:30:56 +0000
(16:30 -0500)
committer
Steve French
<stevef@smf-gateway.(none)>
Fri, 23 Mar 2012 21:30:56 +0000
(16:30 -0500)
Signed-off-by: Steve French <sfrench@us.ibm.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/file.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/cifs/file.c
b/fs/cifs/file.c
index daaaca82eeb23ea40bcedd199e00e5d385619ce8..460d87b7cda08b1280ac05b2f4ac3378230a4f60 100644
(file)
--- a/
fs/cifs/file.c
+++ b/
fs/cifs/file.c
@@
-2114,7
+2114,7
@@
cifs_uncached_marshal_iov(struct kvec *iov, struct cifs_writedata *wdata)
/* marshal up the pages into iov array */
for (i = 0; i < wdata->nr_pages; i++) {
- iov[i + 1].iov_len = min
(
bytes, PAGE_SIZE);
+ iov[i + 1].iov_len = min
_t(size_t,
bytes, PAGE_SIZE);
iov[i + 1].iov_base = kmap(wdata->pages[i]);
bytes -= iov[i + 1].iov_len;
}