]> git.ipfire.org Git - people/ms/linux.git/commit
fix fdset leakage
authorKirill Korotaev <dev@openvz.org>
Fri, 13 Oct 2006 15:58:30 +0000 (17:58 +0200)
committerAdrian Bunk <bunk@stusta.de>
Fri, 13 Oct 2006 15:58:30 +0000 (17:58 +0200)
commite2e103083eb3af79fd5976763251d116366f7ef0
tree4e28833a35ce547a0daa416e136a1dd5a1936cca
parent196be852be1148e604086eccff9c40df8207925d
fix fdset leakage

When found, it is obvious.  nfds calculated when allocating fdsets is
rewritten by calculation of size of fdtable, and when we are unlucky, we
try to free fdsets of wrong size.

Found due to OpenVZ resource management (User Beancounters).

Signed-off-by: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Signed-off-by: Kirill Korotaev <dev@openvz.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
fs/file.c