summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2020-09-27 08:14:23 +0800
committerGitHub <[email protected]>2020-09-27 08:14:23 +0800
commit68c526975986a45a9fae0cf49de2d3f616379eda (patch)
tree314b112473a38f18b57c08a8b8e90368ed72cb46 /components
parent38931765d1b9b8d17baebaca274600121509bd98 (diff)
parent8861202c3b0a74d5e4d73176c38518a5418b2019 (diff)
Merge pull request #3935 from enkiller/0926-1225
[dfs] fix the DEVICE could not get or set flags
Diffstat (limited to 'components')
-rw-r--r--components/dfs/src/dfs_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c
index 91d39597f0..fd205f2f3a 100644
--- a/components/dfs/src/dfs_file.c
+++ b/components/dfs/src/dfs_file.c
@@ -157,7 +157,7 @@ int dfs_file_ioctl(struct dfs_fd *fd, int cmd, void *args)
return -EINVAL;
/* regular file system fd */
- if (fd->type == FT_REGULAR)
+ if (fd->type == FT_REGULAR || fd->type == FT_DEVICE)
{
switch (cmd)
{