Fix reference leak in fix for PR kern/40948.

Pointed out by David Holland.
This commit is contained in:
pooka 2009-04-06 14:09:57 +00:00
parent 5bd52bbac4
commit 556e6e2b6b

View File

@ -1,4 +1,4 @@
/* $NetBSD: ufs_wapbl.c,v 1.6 2009/04/02 11:33:04 pooka Exp $ */
/* $NetBSD: ufs_wapbl.c,v 1.7 2009/04/06 14:09:57 pooka Exp $ */
/*-
* Copyright (c) 2003,2006,2008 The NetBSD Foundation, Inc.
@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ufs_wapbl.c,v 1.6 2009/04/02 11:33:04 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: ufs_wapbl.c,v 1.7 2009/04/06 14:09:57 pooka Exp $");
#if defined(_KERNEL_OPT)
#include "opt_quota.h"
@ -357,8 +357,7 @@ wapbl_ufs_rename(void *v)
} else {
error = VOP_LOOKUP(fdvp, &fvp, fcnp);
if (error && (error != EJUSTRETURN)) {
vput(ITOV(tdp));
tdp = NULL;
vput(fdvp);
vrele(ap->a_fvp);
goto out2;
}