summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authortangyuxin <[email protected]>2020-09-26 12:30:39 +0800
committertangyuxin <[email protected]>2020-09-26 12:30:39 +0800
commit8861202c3b0a74d5e4d73176c38518a5418b2019 (patch)
tree314b112473a38f18b57c08a8b8e90368ed72cb46 /components
parent38931765d1b9b8d17baebaca274600121509bd98 (diff)
[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)
{