diff options
author | Michal Marek <mmarek@suse.com> | 2016-02-17 14:46:59 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-02-28 03:26:30 +0800 |
commit | 3ee0cb5fb5eea2110db1b5cb7f67029b7be8a376 (patch) | |
tree | 1e4d55e95009a958d84441ef97025c28f060ba72 /lib/mpi/mpi-bit.c | |
parent | bfd927ffa219ac81082b2dcc61a1c4037869befc (diff) | |
download | linux-3ee0cb5fb5eea2110db1b5cb7f67029b7be8a376.tar.gz linux-3ee0cb5fb5eea2110db1b5cb7f67029b7be8a376.tar.bz2 linux-3ee0cb5fb5eea2110db1b5cb7f67029b7be8a376.zip |
lib/mpi: Endianness fix
The limbs are integers in the host endianness, so we can't simply
iterate over the individual bytes. The current code happens to work on
little-endian, because the order of the limbs in the MPI array is the
same as the order of the bytes in each limb, but it breaks on
big-endian.
Fixes: 0f74fbf77d45 ("MPI: Fix mpi_read_buffer")
Signed-off-by: Michal Marek <mmarek@suse.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions