mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
56642c566c
PD#SWPL-235559 Problem: kernel crash when read bl2 in s4. it is bring by commit <6f85cdea>. in old platform e.g. s4 don't use common pageinfo method (in drivers/mtd/common/page_info.c) and in old platform common page info also would not prepare page info resource e.g. boot_layout、pages_per_copy、bl2_copy_number and the most important boot_info buffer. so if these old platform to use common page_info method maybe will cause a crash, because these method maybe use theset variables and if using boot_info which is null will cause a crash because unable to handle kernel NULL. Solution: 1. don't to use the common page info method in old platform 2. by the way, delete the useless <drivers/mtd/nand/meson_parse_part.c> which has been replaced by <drivers/mtd/common/meson_parse_part.c> Verify: s4 Change-Id: I9815f3229cbb9da830d51803bd2dd527b2858af0 Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>