提交 a1e58bbd 编写于 作者: H Harvey Harrison 提交者: 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: NHarvey Harrison <harvey.harrison@gmail.com>
Acked-by: NRichard Purdie <rpurdie@rpsys.net>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 f17520e1
......@@ -158,7 +158,7 @@ int lzo1x_decompress_safe(const unsigned char *in, size_t in_len,
t += 7 + *ip++;
}
m_pos -= le16_to_cpu(get_unaligned(
(const unsigned short *)ip) >> 2);
(const unsigned short *)ip)) >> 2;
ip += 2;
if (m_pos == op)
goto eof_found;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册