From de67e43c95fdaa871eb0d110977d57d0d49bc112 Mon Sep 17 00:00:00 2001 From: Bryan Cantrill Date: Mon, 11 May 2015 18:59:32 +0000 Subject: OS-4295 sosctp_connect() can drop unowned lock, inducing panic --- usr/src/uts/common/inet/sockmods/socksctp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/src') diff --git a/usr/src/uts/common/inet/sockmods/socksctp.c b/usr/src/uts/common/inet/sockmods/socksctp.c index bcd8e8d8fa..8b07c9b36e 100644 --- a/usr/src/uts/common/inet/sockmods/socksctp.c +++ b/usr/src/uts/common/inet/sockmods/socksctp.c @@ -21,6 +21,7 @@ /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015 Joyent, Inc. All rights reserved. */ #include @@ -403,7 +404,6 @@ sosctp_connect(struct sonode *so, struct sockaddr *name, } if (name == NULL || namelen == 0) { - mutex_exit(&so->so_lock); error = EINVAL; eprintsoline(so, error); goto done; -- cgit v1.2.3