Avoid trying to malloc > (1<<32) bytes of memory due to an arithmetic
underflow on the alpha.
This commit is contained in:
parent
0c20d79391
commit
5a70a75747
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38002
@ -36,7 +36,7 @@
|
||||
static const char sccsid[] = "@(#)inode.c 8.8 (Berkeley) 4/28/95";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: inode.c,v 1.14 1998/06/15 07:07:12 charnier Exp $";
|
||||
"$Id: inode.c,v 1.15 1998/06/28 19:23:02 bde Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -372,7 +372,7 @@ cacheino(dp, inumber)
|
||||
{
|
||||
register struct inoinfo *inp;
|
||||
struct inoinfo **inpp;
|
||||
unsigned int blks;
|
||||
int blks;
|
||||
|
||||
blks = howmany(dp->di_size, sblock.fs_bsize);
|
||||
if (blks > NDADDR)
|
||||
|
@ -36,7 +36,7 @@
|
||||
static const char sccsid[] = "@(#)inode.c 8.8 (Berkeley) 4/28/95";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: inode.c,v 1.14 1998/06/15 07:07:12 charnier Exp $";
|
||||
"$Id: inode.c,v 1.15 1998/06/28 19:23:02 bde Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -372,7 +372,7 @@ cacheino(dp, inumber)
|
||||
{
|
||||
register struct inoinfo *inp;
|
||||
struct inoinfo **inpp;
|
||||
unsigned int blks;
|
||||
int blks;
|
||||
|
||||
blks = howmany(dp->di_size, sblock.fs_bsize);
|
||||
if (blks > NDADDR)
|
||||
|
@ -36,7 +36,7 @@
|
||||
static const char sccsid[] = "@(#)inode.c 8.8 (Berkeley) 4/28/95";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: inode.c,v 1.14 1998/06/15 07:07:12 charnier Exp $";
|
||||
"$Id: inode.c,v 1.15 1998/06/28 19:23:02 bde Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -372,7 +372,7 @@ cacheino(dp, inumber)
|
||||
{
|
||||
register struct inoinfo *inp;
|
||||
struct inoinfo **inpp;
|
||||
unsigned int blks;
|
||||
int blks;
|
||||
|
||||
blks = howmany(dp->di_size, sblock.fs_bsize);
|
||||
if (blks > NDADDR)
|
||||
|
Loading…
Reference in New Issue
Block a user