mirror of
https://github.com/apache/nuttx.git
synced 2026-08-20 13:08:26 +00:00
fs/mount: fix crash becauseof bad release order
N/A Change-Id: I850f0706f4554d140a86f935b8dce07d23beedaf Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
4a38b651c6
commit
960ca404b7
1 changed files with 1 additions and 1 deletions
|
|
@ -476,8 +476,8 @@ int nx_mount(FAR const char *source, FAR const char *target,
|
|||
/* A lot of goto's! But they make the error handling much simpler */
|
||||
|
||||
errout_with_mountpt:
|
||||
inode_remove(target);
|
||||
inode_release(mountpt_inode);
|
||||
inode_remove(target);
|
||||
|
||||
errout_with_semaphore:
|
||||
inode_semgive();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue