]> git.karo-electronics.de Git - karo-tx-linux.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)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:35 +0000 (17:27 +1000)
commit58d4bbd286d862c65d631860b116e97c688f0720
tree38b96e0e1cbeb6077e8b3aff1522b410ed380771
parentf1c4672989f94be38b298f1ff968e22955148459
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