]> git.baikalelectronics.ru Git - kernel.git/commit
sys_pipe(): fix file descriptor leaks
authorUlrich Drepper <drepper@redhat.com>
Wed, 7 May 2008 03:42:38 +0000 (20:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 8 May 2008 17:46:56 +0000 (10:46 -0700)
commit9216dc6d49cda23d69b4d0a37ed4f88a957adb83
treef3023d34b9ca087412839f6b5937478d49e567ec
parentc348a359f10cb1bf371f0b3dcadb85bf8347a72b
sys_pipe(): fix file descriptor leaks

Remember to close the files if copy_to_user() failed.

Spotted by dm.n9107@gmail.com.

Signed-off-by: Ulrich Drepper <drepper@redhat.com>
Cc: DM <dm.n9107@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/cris/kernel/sys_cris.c
arch/m32r/kernel/sys_m32r.c
fs/pipe.c