tmpfs: Fix tmpfs_foreach recursively removing files in directories

Fixes #912
This commit is contained in:
Oxore 2020-04-30 09:23:09 +03:00 committed by Brennan Ashton
parent e479a97aec
commit 1dcf2c7ca3

View File

@ -1322,7 +1322,7 @@ static int tmpfs_foreach(FAR struct tmpfs_directory_s *tdo,
* action will be to delete the directory.
*/
ret = tmpfs_foreach(next, tmpfs_free_callout, NULL);
ret = tmpfs_foreach(next, callout, arg);
if (ret < 0)
{
return -ECANCELED;