pipe->pipe_buffer.out was not being reset to 0 when switching from direct
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 9 Mar 2005 02:22:31 +0000 (02:22 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 9 Mar 2005 02:22:31 +0000 (02:22 +0000)
commit06f62f21a4fbc47e3f1922c51647cb5c19bc305b
tree3604cc862336962b6a3a97c614a47141c6af37d2
parentcb65615ce5edfc2a88ebe1f893bf923ae816ed03
pipe->pipe_buffer.out was not being reset to 0 when switching from direct
mode back to copy mode, leading to the pipe data becoming corrupt.

Reported-by: Joerg Sonnenberger <joerg@britannica.bec.de>
sys/kern/sys_pipe.c