Date: Mon, 30 Dec 2002 10:46:36 -0800 (PST) From: Chris Vance <cvance@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 22929 for review Message-ID: <200212301846.gBUIkaSi003682@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=22929 Change 22929 by cvance@cvance_laptop on 2002/12/30 10:46:27 Release Giant on error case Affected files ... .. //depot/projects/trustedbsd/mac/sys/security/sebsd/ss/fileutils.c#4 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/security/sebsd/ss/fileutils.c#4 (text+ko) ==== @@ -76,8 +76,11 @@ mtx_lock(&Giant); NDINIT(&nd, LOOKUP, LOCKLEAF, pathseg, path, td); error = vn_open(&nd, &fp->FILE_saved_open_flags, 0); - if (error) + if (error) { + mtx_unlock(&Giant); return (NULL); + } + NDFREE(&nd, NDF_ONLY_PNBUF); VOP_UNLOCK(nd.ni_vp, 0, td); mtx_unlock(&Giant); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212301846.gBUIkaSi003682>