aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorVadim Lobanov <[email protected]>2006-12-10 10:21:09 +0000
committerLinus Torvalds <[email protected]>2006-12-10 17:57:21 +0000
commitf3d19c90fb117a5f080310a4592929aa8e1ad8e9 (patch)
tree80dee984c0b9f06d458257e54dc7742c981d2b05 /security/selinux/hooks.c
parent[PATCH] dio: lock refcount operations (diff)
downloadkernel-f3d19c90fb117a5f080310a4592929aa8e1ad8e9.tar.gz
kernel-f3d19c90fb117a5f080310a4592929aa8e1ad8e9.zip
[PATCH] fdtable: Delete pointless code in dup_fd()
The dup_fd() function creates a new files_struct and fdtable embedded inside that files_struct, and then possibly expands the fdtable using expand_files(). The out_release error path is invoked when expand_files() returns an error code. However, when this attempt to expand fails, the fdtable is left in its original embedded form, so it is pointless to try to free the associated fdarray and fdsets. Signed-off-by: Vadim Lobanov <[email protected]> Cc: Dipankar Sarma <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Al Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions