Damn, check in the wrong version, fixed.
Reviewed by: Submitted by: Obtained from:
This commit is contained in:
parent
6e542db138
commit
2b101991d4
@ -36,7 +36,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)sys_generic.c 8.5 (Berkeley) 1/21/94
|
* @(#)sys_generic.c 8.5 (Berkeley) 1/21/94
|
||||||
* $Id: sys_generic.c,v 1.1 1994/10/13 12:13:00 sos Exp sos $
|
* $Id: sys_generic.c,v 1.9 1994/10/13 21:01:47 sos Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -412,9 +412,9 @@ ioctl(p, uap, retval)
|
|||||||
if (size + IBCS2_RETVAL_SIZE > sizeof (stkbuf)) {
|
if (size + IBCS2_RETVAL_SIZE > sizeof (stkbuf)) {
|
||||||
memp = (caddr_t)malloc((u_long)size + IBCS2_RETVAL_SIZE,
|
memp = (caddr_t)malloc((u_long)size + IBCS2_RETVAL_SIZE,
|
||||||
M_IOCTLOPS, M_WAITOK);
|
M_IOCTLOPS, M_WAITOK);
|
||||||
data = memp;
|
data = memp + IBCS2_RETVAL_SIZE;
|
||||||
} else
|
} else
|
||||||
data = stkbuf;
|
data = stkbuf + IBCS2_RETVAL_SIZE;
|
||||||
*(int *)(data - IBCS2_RETVAL_SIZE) = IBCS2_MAGIC_IN;
|
*(int *)(data - IBCS2_RETVAL_SIZE) = IBCS2_MAGIC_IN;
|
||||||
*(int *)(data - (IBCS2_RETVAL_SIZE - sizeof(int))) = 0;
|
*(int *)(data - (IBCS2_RETVAL_SIZE - sizeof(int))) = 0;
|
||||||
*(int *)(data - (IBCS2_RETVAL_SIZE - 2*sizeof(int))) = 0;
|
*(int *)(data - (IBCS2_RETVAL_SIZE - 2*sizeof(int))) = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user