MFC revision 1.185

date: 2005/12/16 18:32:39;  author: delphij;  state: Exp;  lines: +2 -0
In pipe_write(): when uiomove() fails, do not spin on it forever.

Submitted by:   Kostik Belousov <kostikbel at gmail.com> on -current@
Message-ID:     <20051216151016.GE84442@deviant.zoral.local>
Security:	Local DoS
This commit is contained in:
delphij 2006-01-14 19:57:48 +00:00
parent 54d6a62a16
commit ac58eacb60

View File

@ -1176,6 +1176,8 @@ pipe_write(fp, uio, active_cred, flags, td)
("Pipe buffer overflow"));
}
pipeunlock(wpipe);
if (error != 0)
break;
} else {
/*
* If the "read-side" has been blocked, wake it up now.