commit | f261114cd44f3e0dd4409bb0161ee05163a714f7 | [log] [tgz] |
---|---|---|
author | Bas van Loon <bas@arch-embedded.com> | Mon Jul 28 12:55:25 2025 +0200 |
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | Thu Aug 07 01:35:17 2025 +0000 |
tree | dc70397e0365180c2855e63a967f8d6ae44fadd0 | |
parent | 9cd8d8f41df62f94c59e58f65253a2d41a7f2c10 [diff] |
fs/ext2: Fix NULL dereference when fs_stat queries root. When fs_stat() queries the root / mountpoint it should return its root i_node but instead it tries to return the parent i_node which does not exist. Fix this by checking if parent is set otherwise return the root i_node. Fixes https://github.com/zephyrproject-rtos/zephyr/issues/94000. Signed-off-by: Bas van Loon <bas@arch-embedded.com> (cherry picked from commit 1dcf123e2de81081cf1eced0647db08ad73c4b91)