mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-20 10:16:34 +01:00
From 1.1.5:
>date: 1994/06/15 14:35:30; author: paul; state: Exp; lines: +3 -3 >CHanged MAXMEM to ISMAXMEM for safety
This commit is contained in:
parent
868424648b
commit
11fe0935dd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2952
@ -11,7 +11,7 @@
|
||||
* of this software, nor does the author assume any responsibility
|
||||
* for damages incurred with its use.
|
||||
*
|
||||
* $Id: if_is.c,v 1.25 1994/08/08 13:33:16 davidg Exp $
|
||||
* $Id: if_is.c,v 1.26 1994/08/13 03:50:06 wollman Exp $
|
||||
*/
|
||||
|
||||
/* TODO
|
||||
@ -333,15 +333,15 @@ is_attach(isa_dev)
|
||||
* are only 16 bits wide!
|
||||
*/
|
||||
|
||||
#define MAXMEM ((NRBUF+NTBUF)*(BUFSIZE) + (NRBUF+NTBUF)*sizeof(struct mds) \
|
||||
#define ISMAXMEM ((NRBUF+NTBUF)*(BUFSIZE) + (NRBUF+NTBUF)*sizeof(struct mds) \
|
||||
+ sizeof(struct init_block) + 8)
|
||||
is->init_block = (struct init_block *)malloc(MAXMEM,M_TEMP,M_NOWAIT);
|
||||
is->init_block = (struct init_block *)malloc(ISMAXMEM,M_TEMP,M_NOWAIT);
|
||||
if (!is->init_block) {
|
||||
printf("is%d : Couldn't allocate memory for card\n",unit);
|
||||
}
|
||||
/*
|
||||
* XXX -- should take corrective action if not
|
||||
* quadword alilgned, the 8 byte slew factor in MAXMEM
|
||||
* quadword alilgned, the 8 byte slew factor in ISMAXMEM
|
||||
* allows for this.
|
||||
*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user