diff options
author | James Bottomley <JBottomley@Parallels.com> | 2013-06-27 02:08:22 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-06-27 02:08:22 -0400 |
commit | a9e94ec3504ead4b87a929bc57f5aa99a6590437 (patch) | |
tree | b6e7aaec0e844dc066e93296a85e5769542ef525 /lib/mpi | |
parent | 36a279686bc02d340eb213a9f2a0b67e50de64b4 (diff) | |
parent | 2884d4230867c8a46cf701214051e923301e7429 (diff) |
Merge tag 'fcoe1' into fixes
This patch fixes a critical bug that was introduced in 3.9
related to VLAN tagging FCoE frames.
Diffstat (limited to 'lib/mpi')
-rw-r--r-- | lib/mpi/longlong.h | 5 | ||||
-rw-r--r-- | lib/mpi/mpicoder.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/mpi/longlong.h b/lib/mpi/longlong.h index 095ab157a521..d411355f238e 100644 --- a/lib/mpi/longlong.h +++ b/lib/mpi/longlong.h | |||
@@ -318,7 +318,8 @@ extern UDItype __udiv_qrnnd(); | |||
318 | "rM" ((USItype)(bh)), \ | 318 | "rM" ((USItype)(bh)), \ |
319 | "rM" ((USItype)(al)), \ | 319 | "rM" ((USItype)(al)), \ |
320 | "rM" ((USItype)(bl))) | 320 | "rM" ((USItype)(bl))) |
321 | #if defined(_PA_RISC1_1) | 321 | #if 0 && defined(_PA_RISC1_1) |
322 | /* xmpyu uses floating point register which is not allowed in Linux kernel. */ | ||
322 | #define umul_ppmm(wh, wl, u, v) \ | 323 | #define umul_ppmm(wh, wl, u, v) \ |
323 | do { \ | 324 | do { \ |
324 | union {UDItype __ll; \ | 325 | union {UDItype __ll; \ |
@@ -337,7 +338,7 @@ do { \ | |||
337 | #define UMUL_TIME 40 | 338 | #define UMUL_TIME 40 |
338 | #define UDIV_TIME 80 | 339 | #define UDIV_TIME 80 |
339 | #endif | 340 | #endif |
340 | #ifndef LONGLONG_STANDALONE | 341 | #if 0 /* #ifndef LONGLONG_STANDALONE */ |
341 | #define udiv_qrnnd(q, r, n1, n0, d) \ | 342 | #define udiv_qrnnd(q, r, n1, n0, d) \ |
342 | do { USItype __r; \ | 343 | do { USItype __r; \ |
343 | (q) = __udiv_qrnnd(&__r, (n1), (n0), (d)); \ | 344 | (q) = __udiv_qrnnd(&__r, (n1), (n0), (d)); \ |
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) | |||
37 | mpi_limb_t a; | 37 | mpi_limb_t a; |
38 | MPI val = NULL; | 38 | MPI val = NULL; |
39 | 39 | ||
40 | while (nbytes >= 0 && buffer[0] == 0) { | 40 | while (nbytes > 0 && buffer[0] == 0) { |
41 | buffer++; | 41 | buffer++; |
42 | nbytes--; | 42 | nbytes--; |
43 | } | 43 | } |