walnux/fs
Michal Lenc 01bfa1a500 fs/vfs/fs_close.c: avoid double free if CONFIG_FS_NOTIFY is set
Double free occurred in lib_put_pathbuffer if CONFIG_FS_NOTIFY option
was enabled. The second if statement has to be called only if the
close operation returned error. The bug was introduced in 14f5c48
and was causing misc/lib_tempbuffer.c:141 debug assertion.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2025-06-16 20:23:53 +08:00
..
aio fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
binfs fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
cromfs fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
driver fs: add merge partitions support 2024-11-07 14:59:23 +08:00
event Fix path error 2024-11-28 15:04:59 +08:00
fat style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
hostfs style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
inode fs/vfs: Separate file descriptors from file descriptions 2025-06-12 18:12:42 +08:00
littlefs style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
mmap fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
mnemofs style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
mount wqueue: wqueue remove csection 2025-01-15 17:26:07 +08:00
mqueue fs/vfs: Separate file descriptors from file descriptions 2025-06-12 18:12:42 +08:00
nfs style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
notify fs/vfs: Separate file descriptors from file descriptions 2025-06-12 18:12:42 +08:00
nxffs style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
partition style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
procfs fs/vfs: Separate file descriptors from file descriptions 2025-06-12 18:12:42 +08:00
romfs style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
rpmsgfs Use lib_get_pathbuffer instead of stack variables 2024-11-12 17:21:42 +08:00
semaphore fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
shm fs/shm: add O_CLOEXEC when allocate new struct fd to avoid lost flags. 2025-06-15 07:12:44 -03:00
smartfs fs/smartfs: Fix a fatal bug about sector writing after seek 2025-06-13 20:42:36 +08:00
socket fs/vfs: Separate file descriptors from file descriptions 2025-06-12 18:12:42 +08:00
spiffs style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
tmpfs fs/tmpfs: Skip any slash at the beginning of relpath 2024-12-07 11:40:00 +08:00
unionfs style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
userfs fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
v9fs refactor: fix spelling in private field names 2025-05-24 09:44:22 -03:00
vfs fs/vfs/fs_close.c: avoid double free if CONFIG_FS_NOTIFY is set 2025-06-16 20:23:53 +08:00
zipfs fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
CMakeLists.txt fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_heap.c fs_heap:add fs_heap_mallinfo_task 2025-01-15 17:12:50 +08:00
fs_heap.h fs_heap:add fs_heap_mallinfo_task 2025-01-15 17:12:50 +08:00
fs_initialize.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
Kconfig fs/fs: remove unnecessary FS_REFCOUNT config 2025-06-12 18:12:42 +08:00
Make.defs fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
Makefile fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00