Date: Thu, 21 Jun 2007 10:56:48 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 122085 for review Message-ID: <200706211056.l5LAume2035616@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=122085 Change 122085 by rdivacky@rdivacky_witten on 2007/06/21 10:56:01 Nullify the dir_vn in a case of a failure. Affected files ... .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#22 edit Differences ... ==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#22 (text+ko) ==== @@ -971,10 +971,13 @@ *dir_vn = NULL; else { error = fgetvp(td, dirfd, dir_vn); - if (error) + if (error) { + *dir_vn = NULL; return (error); + } if ((*dir_vn)->v_type != VDIR) { vrele(*dir_vn); + *dir_vn = NULL; return (ENOTDIR); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706211056.l5LAume2035616>