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

subsys/fs: Fix fs_* operations crashing when file closed



Attempt to perform fs_read, fs_write, fs_seek, fs_tell, fs_truncate
and fs_sync on file that has been closed, prior to attempt, would cause
NULL pointer dereference.
With this fix, such operations would instead return -EBADF.

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