summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2013-06-17 20:54:25 +0200
committerGreg Kroah-Hartman2013-06-17 20:54:25 +0200
commit0e496b8e84410c96d1ffc86f0b37b0328a4234da (patch)
treed8a2aeeaee03eb4f305ba4dc5ab9395c4ee31321 /lib
parentpcmcia: pd6729: fix error return code in pd6729_pci_probe() (diff)
parentLinux 3.10-rc6 (diff)
downloadkernel-qcow2-linux-0e496b8e84410c96d1ffc86f0b37b0328a4234da.tar.gz
kernel-qcow2-linux-0e496b8e84410c96d1ffc86f0b37b0328a4234da.tar.xz
kernel-qcow2-linux-0e496b8e84410c96d1ffc86f0b37b0328a4234da.zip
Merge 3.10-rc6 into char-misc-next
We want the fixes in here.
Diffstat (limited to 'lib')
-rw-r--r--lib/mpi/mpicoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mpi/mpicoder.c b/lib/mpi/mpicoder.c
index 5f9c44cdf1f5..4cc6442733f4 100644
--- a/lib/mpi/mpicoder.c
+++ b/lib/mpi/mpicoder.c
@@ -37,7 +37,7 @@ MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes)
mpi_limb_t a;
MPI val = NULL;
- while (nbytes >= 0 && buffer[0] == 0) {
+ while (nbytes > 0 && buffer[0] == 0) {
buffer++;
nbytes--;
}