]> git.baikalelectronics.ru Git - kernel.git/commit
staging: zcache: fix length type mismatch
authorSeth Jennings <sjenning@linux.vnet.ibm.com>
Tue, 28 Feb 2012 22:01:37 +0000 (16:01 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Feb 2012 23:23:37 +0000 (15:23 -0800)
commit8a4a3fa292bb98edf327d9a93400757ea030e9c6
tree5ffa899b3cbae99b3f9f9d36c371462dd0dae822
parentfaad580d1a1a0d75d5d9de6d884d683ebc879284
staging: zcache: fix length type mismatch

This fixes a type mismatch in the compression code where
a size_t pointer was cast to a unsigned int pointer.  On
little endian archs, there is no issue.  However on big
endian archs, the value is incorrect, taking the high
order bits and truncating the lower order bits.

Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zcache/zcache-main.c