]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Fix module refcount leak in __set_personality()
authorSergey Vlasov <vsu@altlinux.ru>
Fri, 24 Mar 2006 11:18:38 +0000 (03:18 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 24 Mar 2006 15:33:30 +0000 (07:33 -0800)
commitfaf6ee674d0094a45c0ec31bdeb9c5e36dac8931
tree93a839de19cf3f49bbbb3668f31c8a002c2f7f7f
parent6daec63352afa5ea3cdee035156a9f8680e6de1e
[PATCH] Fix module refcount leak in __set_personality()

If the change of personality does not lead to change of exec domain,
__set_personality() returned without releasing the module reference
acquired by lookup_exec_domain().

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/exec_domain.c