summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2024-01-02 09:23:17 -0600
committerJoel Sherrill <joel@rtems.org>2024-01-10 14:43:53 -0600
commitc37fdedec22ba43b6ccf3935ea1bbe4a3413235b (patch)
treef787138faaf43f223d79f53e48a8443b02abcbda
parentRevert "Include Xilinx support files also for Zynq7000" (diff)
downloadrtems-c37fdedec22ba43b6ccf3935ea1bbe4a3413235b.tar.bz2
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.
-rw-r--r--cpukit/libfs/src/dosfs/msdos_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos_create.c b/cpukit/libfs/src/dosfs/msdos_create.c
index 26df0451c9..f71969f787 100644
--- a/cpukit/libfs/src/dosfs/msdos_create.c
+++ b/cpukit/libfs/src/dosfs/msdos_create.c
@@ -202,7 +202,7 @@ msdos_creat_node(const rtems_filesystem_location_info_t *parent_loc,
fs_info->fat.vol.bpc,
&unused);
if (rc != RC_OK)
- goto err;
+ goto error;
/*
* dot and dotdot entries are identical to new node except the