diff options
author | 2005-09-15 00:48:42 +0530 | |
---|---|---|
committer | 2005-09-14 12:38:26 -0700 | |
commit | 0b175a7e68c2f51555820efb0a01681e3419c1bc (patch) | |
tree | 6dc0dd21b9aaad86f6a94c594c7705ee5441c5aa /lib/dec_and_lock.c | |
parent | [PATCH] Fix slab BUG_ON() triggered by change in array cache size (diff) | |
download | wireguard-linux-0b175a7e68c2f51555820efb0a01681e3419c1bc.tar.xz wireguard-linux-0b175a7e68c2f51555820efb0a01681e3419c1bc.zip |
[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 <dipankar@in.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'lib/dec_and_lock.c')
0 files changed, 0 insertions, 0 deletions