Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb fix bogus argument to kmem_free()
details: https://anonhg.NetBSD.org/src/rev/a48c7042c0de
branches: trunk
changeset: 784148:a48c7042c0de
user: christos <christos%NetBSD.org@localhost>
date: Sat Jan 19 20:49:06 2013 +0000
description:
fix bogus argument to kmem_free()
diffstat:
sys/dev/usb/usb_mem.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e6d0608e8bd8 -r a48c7042c0de sys/dev/usb/usb_mem.c
--- a/sys/dev/usb/usb_mem.c Sat Jan 19 17:45:28 2013 +0000
+++ b/sys/dev/usb/usb_mem.c Sat Jan 19 20:49:06 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb_mem.c,v 1.56 2013/01/17 06:24:44 matt Exp $ */
+/* $NetBSD: usb_mem.c,v 1.57 2013/01/19 20:49:06 christos Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb_mem.c,v 1.56 2013/01/17 06:24:44 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb_mem.c,v 1.57 2013/01/19 20:49:06 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -473,7 +473,7 @@
error = extent_free(rs->extent,
(u_long)(rs->paddr + dma->offs), dma->block->size, 0);
/* XXXPW correct that segs[0] is not used? */
- kmem_free(dma->block, dma->block->size);
+ kmem_free(dma->block, sizeof *dma->block);
}
int
Home |
Main Index |
Thread Index |
Old Index