OSDN Git Service

Fix kernel panic when boot up nougat-x86 android-x86-7.1-r1 android-x86-7.1-r2 android-x86-7.1-r3 android-x86-7.1-r4 android-x86-7.1-r5
authorzhang sanshan <sanshan.zhang@nxp.com>
Wed, 26 Oct 2016 13:03:37 +0000 (21:03 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 9 Jun 2017 02:41:14 +0000 (10:41 +0800)
commit0caea84cc9cedd65b661e6f1308c4470ce41ea6a
tree4c3f6bee735263997b0284136c5c7a451b3ee44a
parent0319674a811c21271d842f2024795cbc72b8022a
Fix kernel panic when boot up

Kernel will panic with below log after factory reset:
EXT4-fs error (device mmcblk1p4): ext4_validate_block_bitmap:380: comm init: bg 17: block 557056: invalid block bitmap
Aborting journal on device mmcblk1p4-8.
Kernel panic - not syncing: EXT4-fs (device mmcblk1p4): panic forced after error
Rebooting in 5 seconds.

The root cause is the data type conversion issue on 32 bit devices.
When a 32-bit data  mutiply a 32-bit data, it will still get a 32-bit data.
The 64-bit offset will be cut to 32 bit.

Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
ext4_utils/ext4_utils.c