Unlock pipe mutex when failing MAC pipe ioctl access control check.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
This commit is contained in:
rwatson 2003-11-03 17:58:23 +00:00
parent c5a32d4605
commit 95e56a059a

View File

@ -1191,8 +1191,10 @@ pipe_ioctl(fp, cmd, data, active_cred, td)
#ifdef MAC
error = mac_check_pipe_ioctl(active_cred, mpipe, cmd, data);
if (error)
if (error) {
PIPE_UNLOCK(mpipe);
return (error);
}
#endif
switch (cmd) {