Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/specfs CID 1308957: Fix wrong sizeof()
details: https://anonhg.NetBSD.org/src/rev/eebb91606ddc
branches: trunk
changeset: 809284:eebb91606ddc
user: christos <christos%NetBSD.org@localhost>
date: Mon Jun 29 15:39:40 2015 +0000
description:
CID 1308957: Fix wrong sizeof()
diffstat:
sys/miscfs/specfs/spec_vnops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 00fd5a11026d -r eebb91606ddc sys/miscfs/specfs/spec_vnops.c
--- a/sys/miscfs/specfs/spec_vnops.c Mon Jun 29 12:27:41 2015 +0000
+++ b/sys/miscfs/specfs/spec_vnops.c Mon Jun 29 15:39:40 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spec_vnops.c,v 1.148 2015/06/23 10:42:34 hannken Exp $ */
+/* $NetBSD: spec_vnops.c,v 1.149 2015/06/29 15:39:40 christos Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.148 2015/06/23 10:42:34 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.149 2015/06/29 15:39:40 christos Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -1097,7 +1097,7 @@
struct vnode *vp = ap->a_vp;
KASSERT(vp->v_mount == dead_rootmount);
- vcache_remove(vp->v_mount, vp, sizeof(vp));
+ vcache_remove(vp->v_mount, vp, sizeof(*vp));
return 0;
}
Home |
Main Index |
Thread Index |
Old Index