Commit a1e58bbd authored by Harvey Harrison's avatar Harvey Harrison Committed by Linus Torvalds

lzo: fix typo in decompressor

Shift of a LE value seems strange, probably meant to shift the cpu-order
variable as in the prvious section of the switch statement.
Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Acked-by: default avatarRichard Purdie <rpurdie@rpsys.net>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f17520e1
...@@ -158,7 +158,7 @@ int lzo1x_decompress_safe(const unsigned char *in, size_t in_len, ...@@ -158,7 +158,7 @@ int lzo1x_decompress_safe(const unsigned char *in, size_t in_len,
t += 7 + *ip++; t += 7 + *ip++;
} }
m_pos -= le16_to_cpu(get_unaligned( m_pos -= le16_to_cpu(get_unaligned(
(const unsigned short *)ip) >> 2); (const unsigned short *)ip)) >> 2;
ip += 2; ip += 2;
if (m_pos == op) if (m_pos == op)
goto eof_found; goto eof_found;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment