From 0648121998f342da9e8400286238c62d3620ea4e Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Mon, 30 Aug 2004 03:06:49 +0000 Subject: Remove 'usb_'realloc() usage because it doesn't know the size of the old buffer, thus may copy too much, causing a memory fault. ok millert, dlg, henning, tdeval, otto --- sys/dev/usb/usb_port.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/dev/usb/usb_port.h') diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h index 46b14e7579f..50d58327ce6 100644 --- a/sys/dev/usb/usb_port.h +++ b/sys/dev/usb/usb_port.h @@ -1,4 +1,4 @@ -/* $OpenBSD: usb_port.h,v 1.49 2004/05/26 04:26:58 deraadt Exp $ */ +/* $OpenBSD: usb_port.h,v 1.50 2004/08/30 03:06:48 drahn Exp $ */ /* $NetBSD: usb_port.h,v 1.62 2003/02/15 18:33:30 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/usb_port.h,v 1.21 1999/11/17 22:33:47 n_hibma Exp $ */ @@ -296,9 +296,6 @@ typedef int usb_malloc_type; #define slinear16_to_ulinear8_le linear16_to_ulinear8_le #define slinear16_to_ulinear8_be linear16_to_ulinear8_be -#define realloc usb_realloc -void *usb_realloc(void *, u_int, int, int); - typedef struct device *device_ptr_t; #define USBBASEDEVICE struct device #define USBDEV(bdev) (&(bdev)) -- cgit v1.2.3