Skip to content
Commit d4666f53 authored by Dominik Ermel's avatar Dominik Ermel Committed by Anas Nashif
Browse files

fs: Fix fs_open resource leak when invoked on fs_file_t object in use



Fixes problem when fs_open invoked on fs_file_t object, which is already
holding information on opened file, overwrites references to other
memory objects within the fs_file_t object causing resource leak.
If fs_open is invoked on already used fs_file_t object, it will return
-EBUSY.

Note: The change requires that all fs_file_t objects should be
initialized to 0.

Fixes: #29478

Signed-off-by: default avatarDominik Ermel <dominik.ermel@nordicsemi.no>
parent 21329237
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment