pci_user.c (91406) | pci_user.c (109623) |
---|---|
1/* 2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/* 2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/pci/pci_user.c 91406 2002-02-27 18:32:23Z jhb $ | 26 * $FreeBSD: head/sys/dev/pci/pci_user.c 109623 2003-01-21 08:56:16Z alfred $ |
27 * 28 */ 29 30#include "opt_bus.h" /* XXX trim includes */ 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/malloc.h> --- 267 unchanged lines hidden (view full) --- 302 cio->pat_buf_len); 303 error = EACCES; 304 break; 305 } 306 /* 307 * Allocate a buffer to hold the patterns. 308 */ 309 pattern_buf = malloc(cio->pat_buf_len, M_TEMP, | 27 * 28 */ 29 30#include "opt_bus.h" /* XXX trim includes */ 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/malloc.h> --- 267 unchanged lines hidden (view full) --- 302 cio->pat_buf_len); 303 error = EACCES; 304 break; 305 } 306 /* 307 * Allocate a buffer to hold the patterns. 308 */ 309 pattern_buf = malloc(cio->pat_buf_len, M_TEMP, |
310 M_WAITOK); | 310 0); |
311 error = copyin(cio->patterns, pattern_buf, 312 cio->pat_buf_len); 313 if (error != 0) 314 break; 315 num_patterns = cio->num_patterns; 316 317 } else if ((cio->num_patterns > 0) 318 || (cio->pat_buf_len > 0)) { --- 174 unchanged lines hidden --- | 311 error = copyin(cio->patterns, pattern_buf, 312 cio->pat_buf_len); 313 if (error != 0) 314 break; 315 num_patterns = cio->num_patterns; 316 317 } else if ((cio->num_patterns > 0) 318 || (cio->pat_buf_len > 0)) { --- 174 unchanged lines hidden --- |