forked from Imagelibrary/rtems
cpukit/dosfs: Jump to correct error handler
When encountering an error during filesystem creation, fat_fd must be cleaned up appropriately once the file is opened. There was an opportunity for a resource leak due to jumping to the incorrect error handling label.
This commit is contained in:
committed by
Joel Sherrill
parent
baec0608d6
commit
c37fdedec2
@@ -202,7 +202,7 @@ msdos_creat_node(const rtems_filesystem_location_info_t *parent_loc,
|
|||||||
fs_info->fat.vol.bpc,
|
fs_info->fat.vol.bpc,
|
||||||
&unused);
|
&unused);
|
||||||
if (rc != RC_OK)
|
if (rc != RC_OK)
|
||||||
goto err;
|
goto error;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* dot and dotdot entries are identical to new node except the
|
* dot and dotdot entries are identical to new node except the
|
||||||
|
|||||||
Reference in New Issue
Block a user