commit
09a9e82fef
|
@ -221,7 +221,7 @@ struct dfs_fd *fd_get(int fd)
|
||||||
d = fdt->fds[fd];
|
d = fdt->fds[fd];
|
||||||
|
|
||||||
/* check dfs_fd valid or not */
|
/* check dfs_fd valid or not */
|
||||||
if (d->magic != DFS_FD_MAGIC)
|
if ((d == NULL) || (d->magic != DFS_FD_MAGIC))
|
||||||
{
|
{
|
||||||
dfs_unlock();
|
dfs_unlock();
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue