Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8936
b: refs/heads/master
c: 0b175a7
h: refs/heads/master
v: v3
  • Loading branch information
Dipankar Sarma authored and Linus Torvalds committed Sep 14, 2005
1 parent 6a9158b commit 7ca789e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c7e43c78ae4d8630c418ce3495787b995e61a580
refs/heads/master: 0b175a7e68c2f51555820efb0a01681e3419c1bc
10 changes: 3 additions & 7 deletions trunk/fs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,9 @@ void free_fd_array(struct file **array, int num)

static void __free_fdtable(struct fdtable *fdt)
{
int fdset_size, fdarray_size;

fdset_size = fdt->max_fdset / 8;
fdarray_size = fdt->max_fds * sizeof(struct file *);
free_fdset(fdt->open_fds, fdset_size);
free_fdset(fdt->close_on_exec, fdset_size);
free_fd_array(fdt->fd, fdarray_size);
free_fdset(fdt->open_fds, fdt->max_fdset);
free_fdset(fdt->close_on_exec, fdt->max_fdset);
free_fd_array(fdt->fd, fdt->max_fds);
kfree(fdt);
}

Expand Down

0 comments on commit 7ca789e

Please sign in to comment.