]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pipe_direct_write: Fix mismatched pipelock/unlock
authorConrad Meyer <cem@FreeBSD.org>
Mon, 13 Jul 2015 17:45:22 +0000 (17:45 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Mon, 13 Jul 2015 17:45:22 +0000 (17:45 +0000)
commitc578e0fb48004db8a7ccb216884dd9d7a2671b73
tree5a034109067832ecafdb0471b5ec6a8e27e4ee20
parent4ffa3da5f8d86a7014de319932c16030605567b2
pipe_direct_write: Fix mismatched pipelock/unlock

If a signal is caught in pipelock, causing it to fail, pipe_direct_write
should not try to pipeunlock.

Reported by: pho
Differential Revision: https://reviews.freebsd.org/D3069
Reviewed by: kib
Approved by: markj (mentor)
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
sys/kern/sys_pipe.c