Mercurial > illumos > illumos-gate
changeset 13138:222ede23af01
6925145 audit_update_context() accidentally calls mutex_enter() instead of mutex_exit()
author | Marek Pospisil <Marek.Pospisil@Sun.COM> |
---|---|
date | Mon, 16 Aug 2010 16:30:06 -0700 |
parents | 34b1540309cc |
children | 90a779dde79b |
files | usr/src/uts/common/os/audit_core.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/os/audit_core.c Mon Aug 16 19:16:00 2010 -0400 +++ b/usr/src/uts/common/os/audit_core.c Mon Aug 16 16:30:06 2010 -0700 @@ -19,8 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2010 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. */ #include <sys/param.h> @@ -160,7 +159,7 @@ if (pad->pad_flags & PAD_SETMASK) { ainfo = crgetauinfo_modifiable(newcred); if (ainfo == NULL) { - mutex_enter(&pad->pad_lock); + mutex_exit(&pad->pad_lock); crfree(newcred); return; }