diff options
| author | David S. Miller <davem@davemloft.net> | 2014-08-05 21:46:26 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-08-05 21:46:26 -0400 |
| commit | d247b6ab3ce6dd43665780865ec5fa145d9ab6bd (patch) | |
| tree | 02eb71e4d64b678d7568d2b99f309e08f56ef2fe /lib | |
| parent | 30f00847953e3aa3f710d62ffd37b42042807900 (diff) | |
| parent | 4d8fdc95c60e90d84c8257a0067ff4b1729a3757 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts:
drivers/net/Makefile
net/ipv6/sysctl_net_ipv6.c
Two ipv6_table_template[] additions overlap, so the index
of the ipv6_table[x] assignments needed to be adjusted.
In the drivers/net/Makefile case, we've gotten rid of the
garbage whereby we had to list every single USB networking
driver in the top-level Makefile, there is just one
"USB_NETWORKING" that guards everything.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/iovec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/iovec.c b/lib/iovec.c index 7a7c2da4cddf..df3abd1eaa4a 100644 --- a/lib/iovec.c +++ b/lib/iovec.c | |||
| @@ -85,6 +85,10 @@ EXPORT_SYMBOL(memcpy_toiovecend); | |||
| 85 | int memcpy_fromiovecend(unsigned char *kdata, const struct iovec *iov, | 85 | int memcpy_fromiovecend(unsigned char *kdata, const struct iovec *iov, |
| 86 | int offset, int len) | 86 | int offset, int len) |
| 87 | { | 87 | { |
| 88 | /* No data? Done! */ | ||
| 89 | if (len == 0) | ||
| 90 | return 0; | ||
| 91 | |||
| 88 | /* Skip over the finished iovecs */ | 92 | /* Skip over the finished iovecs */ |
| 89 | while (offset >= iov->iov_len) { | 93 | while (offset >= iov->iov_len) { |
| 90 | offset -= iov->iov_len; | 94 | offset -= iov->iov_len; |
