Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/puffs/mount_9p puffs9p_node_rename - noderename tak...



details:   https://anonhg.NetBSD.org/src/rev/897405cff272
branches:  trunk
changeset: 933549:897405cff272
user:      uwe <uwe%NetBSD.org@localhost>
date:      Wed May 27 00:05:22 2020 +0000

description:
puffs9p_node_rename - noderename takes puffs_node, not p9pnode, but
this goes undetected b/c pn_data we pass is a pointer to void.

>From Nicola Girardi, part of PR/54829.

diffstat:

 usr.sbin/puffs/mount_9p/node.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cb0b13e63531 -r 897405cff272 usr.sbin/puffs/mount_9p/node.c
--- a/usr.sbin/puffs/mount_9p/node.c    Tue May 26 23:08:56 2020 +0000
+++ b/usr.sbin/puffs/mount_9p/node.c    Wed May 27 00:05:22 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: node.c,v 1.25 2020/05/26 22:54:43 uwe Exp $    */
+/*     $NetBSD: node.c,v 1.26 2020/05/27 00:05:22 uwe Exp $    */
 
 /*
  * Copyright (c) 2007  Antti Kantee.  All Rights Reserved.
@@ -27,7 +27,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: node.c,v 1.25 2020/05/26 22:54:43 uwe Exp $");
+__RCSID("$NetBSD: node.c,v 1.26 2020/05/27 00:05:22 uwe Exp $");
 #endif /* !lint */
 
 #include <assert.h>
@@ -586,7 +586,7 @@
        if (targ) {
                struct puffs_node *pn_targ = targ;
 
-               rv = noderemove(pu, pn_targ->pn_data);
+               rv = noderemove(pu,  pn_targ);
                if (rv)
                        goto out;
        }



Home | Main Index | Thread Index | Old Index