diff --git a/src/kernel/core/fs/vfs.cpp b/src/kernel/core/fs/vfs.cpp index 5f51a7313f..8a78050c7b 100755 --- a/src/kernel/core/fs/vfs.cpp +++ b/src/kernel/core/fs/vfs.cpp @@ -2889,7 +2889,7 @@ attr_remove(int fd, const char *name, bool kernel) else status = EROFS; - put_fd(fd); + put_fd(descriptor); return status; } @@ -2929,9 +2929,9 @@ attr_rename(int fromfd, const char *fromName, int tofd, const char *toName, bool status = EROFS; err1: - put_fd(tofd); + put_fd(toDescriptor); err: - put_fd(fromfd); + put_fd(fromDescriptor); return status; }