Skip to content

Commit a1e58bb

Browse files
hharrisontorvalds
authored andcommitted
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: Harvey Harrison <harvey.harrison@gmail.com> Acked-by: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent f17520e commit a1e58bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/lzo/lzo1x_decompress.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ int lzo1x_decompress_safe(const unsigned char *in, size_t in_len,
158158
t += 7 + *ip++;
159159
}
160160
m_pos -= le16_to_cpu(get_unaligned(
161-
(const unsigned short *)ip) >> 2);
161+
(const unsigned short *)ip)) >> 2;
162162
ip += 2;
163163
if (m_pos == op)
164164
goto eof_found;

0 commit comments

Comments
 (0)