pipe(2) - race-free error recovery
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 19 Aug 2012 16:17:29 +0000 (12:17 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Sep 2012 01:08:52 +0000 (21:08 -0400)
commit5b249b1b07c42c61d0c53b8ab4fad026e39a9be9
tree671b511c34bcae46b69dface3122f08d0ac399bf
parenta79f41ed9786b75ebe75e52295ad54049b8551b6
pipe(2) - race-free error recovery

don't mess with sys_close() if copy_to_user() fails; just postpone
fd_install() until we know it hasn't.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/pipe.c