|
uint32_t vfs_get_access_mode(int gfd) |
|
{ |
|
uint32_t ret; |
|
|
|
mutex_lock(&vfs_lock); |
|
|
|
if (open_fds[gfd]) |
|
ret = open_fds[gfd]->flags_access_mode; |
|
|
|
mutex_unlock(&vfs_lock); |
|
|
|
return ret; |
|
} |
|
uint32_t vfs_get_operating_mode(int gfd) |
|
{ |
|
uint32_t ret; |
|
mutex_lock(&vfs_lock); |
|
|
|
if (open_fds[gfd]) |
|
ret = open_fds[gfd]->flags_operating_mode; |
|
|
|
mutex_unlock(&vfs_lock); |
|
|
|
return ret; |
|
} |
ret is returned uninitialized whenever the if condition is false in both of these functions
so3/so3/fs/vfs.c
Lines 292 to 304 in 9fd2100
so3/so3/fs/vfs.c
Lines 315 to 326 in 9fd2100
retis returned uninitialized whenever theifcondition is false in both of these functions