Skip to content

Commit

Permalink
Merged in BUG/fs_mutex (pull request zephyrproject-rtos#12)
Browse files Browse the repository at this point in the history
Fix null pointer exception when fs_unmount is invoked concurrently while threads are doing file I/O

Approved-by: Fabian van den IJssel
Approved-by: Bas van Loon
  • Loading branch information
Chris Desjardins authored and Bas van Loon committed Sep 3, 2024
2 parents 71d0813 + ad0e1a0 commit 46cce3d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions subsys/fs/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -815,9 +815,6 @@ int fs_unmount(struct fs_mount_t *mp)
goto unmount_err;
}

/* clear file system interface */
mp->fs = NULL;

/* remove mount node from the list */
sys_dlist_remove(&mp->node);
LOG_DBG("fs unmounted from %s", mp->mnt_point);
Expand Down

0 comments on commit 46cce3d

Please sign in to comment.