Date: Sun, 20 May 2018 21:20:26 +0000 (UTC) From: Matt Macy <mmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r333941 - head/sys/kern Message-ID: <201805202120.w4KLKQ6P076664@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mmacy Date: Sun May 20 21:20:26 2018 New Revision: 333941 URL: https://svnweb.freebsd.org/changeset/base/333941 Log: AF_UNIX: Don't unlock unp/unp2 if they're not locked Reported by: mjg Modified: head/sys/kern/uipc_usrreq.c Modified: head/sys/kern/uipc_usrreq.c ============================================================================== --- head/sys/kern/uipc_usrreq.c Sun May 20 21:07:29 2018 (r333940) +++ head/sys/kern/uipc_usrreq.c Sun May 20 21:20:26 2018 (r333941) @@ -1568,7 +1568,7 @@ unp_connectat(int fd, struct socket *so, struct sockad so2 = NULL; if (so2 == NULL) { error = ECONNREFUSED; - goto bad3; + goto bad2; } unp3 = sotounpcb(so2); unp_pcb_lock2(unp2, unp3);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805202120.w4KLKQ6P076664>