Skip to content

Commit 90b8640

Browse files
author
mycroft
committed
When a file is removed from the upper layer, make sure to release the
reference to it. From John Kohl.
1 parent fc14cfe commit 90b8640

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sys/miscfs/union/union_subr.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: union_subr.c,v 1.10 1995/05/30 08:51:24 mycroft Exp $ */
1+
/* $NetBSD: union_subr.c,v 1.11 1995/05/30 09:07:10 mycroft Exp $ */
22

33
/*
44
* Copyright (c) 1994 Jan-Simon Pendry
@@ -950,6 +950,8 @@ union_removed_upper(un)
950950
struct union_node *un;
951951
{
952952

953+
union_newupper(un, NULLVP);
954+
953955
if (un->un_flags & UN_CACHED) {
954956
un->un_flags &= ~UN_CACHED;
955957
LIST_REMOVE(un, un_cache);

0 commit comments

Comments
 (0)