Skip to content

Commit

Permalink
lzo: fix typo in decompressor
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Richard Purdie <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
hharrison authored and torvalds committed Apr 10, 2008
1 parent f17520e commit a1e58bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lzo/lzo1x_decompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a1e58bb

Please sign in to comment.