git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'linux-3.17' of git://anongit.freedesktop.org/git/nouveau/linux-2.6
[pandora-kernel.git]
/
lib
/
iovec.c
diff --git
a/lib/iovec.c
b/lib/iovec.c
index
7a7c2da
..
df3abd1
100644
(file)
--- a/
lib/iovec.c
+++ b/
lib/iovec.c
@@
-85,6
+85,10
@@
EXPORT_SYMBOL(memcpy_toiovecend);
int memcpy_fromiovecend(unsigned char *kdata, const struct iovec *iov,
int offset, int len)
{
+ /* No data? Done! */
+ if (len == 0)
+ return 0;
+
/* Skip over the finished iovecs */
while (offset >= iov->iov_len) {
offset -= iov->iov_len;