1
0
Fork 0
forked from nuttx/nuttx-update
local-nuttx-update/fs/partition
wangjianyu3 d83ab55e00 fs/partition/txtable: Fix panic when no txtable was found in last eraseblock
Panic occured if no txtable was found in last eraseblock of MTD device and `CONFIG_TXTABLE_DEFAULT_PARTITION` was disabled

Backtrace

  sched_dumpstack
  /workspace/nuttx/libs/libc/sched/sched_dumpstack.c:71
  dump_assert_info
  /workspace/nuttx/sched/misc/assert.c:718
  xtensa_user_panic
  /workspace/nuttx/arch/xtensa/src/common/xtensa_assert.c:188 (discriminator 1)
  xtensa_user
  ??:?
  _xtensa_user_handler
  /workspace/nuttx/arch/xtensa/src/common/xtensa_user_handler.S:194
  ??
  ??:0
  parse_txtable_partition
  /workspace/nuttx/fs/partition/fs_txtable.c:136
  parse_partition
  /workspace/nuttx/fs/partition/fs_partition.c:165
  parse_mtd_partition
  /workspace/nuttx/fs/partition/fs_partition.c:291

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-11-26 18:23:06 +08:00
..
CMakeLists.txt fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_gpt.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_mbr.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_partition.c Use lib_get_pathbuffer instead of stack variables 2024-11-12 17:21:42 +08:00
fs_ptable.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_txtable.c fs/partition/txtable: Fix panic when no txtable was found in last eraseblock 2024-11-26 18:23:06 +08:00
Kconfig TXTABLE: Support backup table 2023-07-29 20:27:10 -07:00
Make.defs fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
partition.h fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00