Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] Fix the fdtable freeing in the case of vmalloced fdset/arrays
Noted by David Miller: "The bug is that free_fd_array() takes a "num" argument, but when calling it from __free_fdtable() we're instead passing in the size in bytes (ie. "num * sizeof(struct file *)")." Yes it is a bug. I think I messed it up while merging newer changes with an older version where I was using size in bytes to optimize. Signed-off-by: Dipankar Sarma <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information