]> git.baikalelectronics.ru Git - kernel.git/commit
minix: bug widening a binary "not" operation
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 19 Jun 2013 00:08:10 +0000 (10:08 +1000)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 29 Jun 2013 08:57:35 +0000 (12:57 +0400)
commit56b99162ece1b7aa4fe7e1bd866d68bee7c2a2cc
tree616b89d759f128c01e967ed64fd7c7da1b763dcf
parent1eedb08a45f0c182c04f5e40df3780b0bc8c9d64
minix: bug widening a binary "not" operation

"chunk_size" is an unsigned int and "pos" is an unsigned long.  The
"& ~(chunk_size-1)" operation clears the high 32 bits unintentionally.

The ALIGN() macro does the correct thing.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/minix/dir.c