Date: Fri, 17 Mar 2006 21:37:58 GMT From: Todd Miller <millert@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 93468 for review Message-ID: <200603172137.k2HLbwCV015943@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=93468 Change 93468 by millert@millert_p3 on 2006/03/17 21:37:30 Correct error path when mac_check_file_change_offset() fails in getdirentries(). Affected files ... .. //depot/projects/trustedbsd/sebsd/sys/kern/vfs_syscalls.c#18 edit Differences ... ==== //depot/projects/trustedbsd/sebsd/sys/kern/vfs_syscalls.c#18 (text+ko) ==== @@ -3775,10 +3775,8 @@ } #ifdef MAC error = mac_check_file_change_offset(td->td_ucred, fp); - if (error) { - fdrop(fp, td); - return (error); - } + if (error) + goto fail; #endif aiov.iov_base = uap->buf; aiov.iov_len = uap->count;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603172137.k2HLbwCV015943>