Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fs: legacy: gracefully handle non existent files
The Semihosting file system API doesn't support listing files, so the opendir callback returns NULL. This triggers crashes inside the legacy dentry adapter code, so add some NULL checks to guard against this. Signed-off-by: Ahmad Fatoum <[email protected]> Link: https://lore.barebox.org/[email protected] Signed-off-by: Sascha Hauer <[email protected]>
- Loading branch information