Re: [PATCH] fix for sysinfo(2) in 2.4.0-test1
Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 4 Jun 2000 17:49:24 +0100 (BST)
> + /* These are in units of PAGE_SIZE, but this interface
> + * has always returned bytes. Make it return bytes */
> + val.totalram*=PAGE_SIZE;
> + val.freeram*=PAGE_SIZE;
> + val.sharedram*=PAGE_SIZE;
> + val.bufferram*=PAGE_SIZE;
> + val.totalswap*=PAGE_SIZE;
> + val.freeswap*=PAGE_SIZE;
> + val.totalhigh*=PAGE_SIZE;
> + val.freehigh*=PAGE_SIZE;
Each of these may overflow a 32bit value
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/