bl_iot_sdk/components
Paul Capron c546054984 vfs: Fix counting in inode_avail_count
As seen in `inode_del` (and `inode_alloc`), a free (`NOT_INIT`) node can be found anywhere in `g_vfs_dev_nodes`; it’s a “sparse” list.
So when checking for free nodes, the iterating index variable (`e`) shall be used, not the counter (`count`). The code got that wrong.
For instance, if the first node is not available (type is not `VFS_TYPE_NOT_INIT`), then the function previously returned 0, no matter what, and was iterating the node list in vain.
2020-10-31 21:51:30 +08:00
..
3rdparty/aws-iot Initial Commit 2020-10-26 20:35:25 +08:00
audio Initial Commit 2020-10-26 20:35:25 +08:00
bl602 Initial Commit 2020-10-26 20:35:25 +08:00
fs vfs: Fix counting in inode_avail_count 2020-10-31 21:51:30 +08:00
hal_drv Initial Commit 2020-10-26 20:35:25 +08:00
network Merge pull request #3 from BKPepe/pppd 2020-10-30 13:53:17 +08:00
security/mbedtls Delete README.md 2020-10-27 10:34:41 +08:00
stage Initial Commit 2020-10-26 20:35:25 +08:00
sys bl_sys_time.c: adds null pointer checks and extra spaces cleanup 2020-10-28 11:59:59 -07:00
utils Initial Commit 2020-10-26 20:35:25 +08:00