ANDROID: squashfs: Fix signed division issue
authorDaniel Rosenberg <drosen@google.com>
Wed, 21 Jun 2017 00:05:33 +0000 (17:05 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 10 Jul 2017 10:57:52 +0000 (16:27 +0530)
commit2d616f8ceaf68c68c123590ad75839efaaa232a4
treef72cb5ade03e59791939f2e5c4bd08c0a191424a
parent49bf9944dd61e30ec16ec2fa162b9f5a956ce529
ANDROID: squashfs: Fix signed division issue

The value here can change depending on the type that PAGE_SIZE
has on a given architecture. To avoid the ensuing signed and
unsigned division conversions, we shift instead using PAGE_SHIFT

Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug: 35257858
Change-Id: I132cae93abea39390c3f0f91a4b2e026e97ed4c7
fs/squashfs/block.c