tmpfs: Fix tmpfs_foreach recursively removing files in directories
Fixes #912
This commit is contained in:
parent
e479a97aec
commit
1dcf2c7ca3
@ -1322,7 +1322,7 @@ static int tmpfs_foreach(FAR struct tmpfs_directory_s *tdo,
|
|||||||
* action will be to delete the directory.
|
* action will be to delete the directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ret = tmpfs_foreach(next, tmpfs_free_callout, NULL);
|
ret = tmpfs_foreach(next, callout, arg);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
return -ECANCELED;
|
return -ECANCELED;
|
||||||
|
Loading…
Reference in New Issue
Block a user