diff options
| author | tangyuxin <[email protected]> | 2020-09-26 12:30:39 +0800 |
|---|---|---|
| committer | tangyuxin <[email protected]> | 2020-09-26 12:30:39 +0800 |
| commit | 8861202c3b0a74d5e4d73176c38518a5418b2019 (patch) | |
| tree | 314b112473a38f18b57c08a8b8e90368ed72cb46 /components | |
| parent | 38931765d1b9b8d17baebaca274600121509bd98 (diff) | |
[dfs] fix the DEVICE could not get or set flags
Diffstat (limited to 'components')
| -rw-r--r-- | components/dfs/src/dfs_file.c | 2 |
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) { |
