shm sysctl: int <-> ulong problem

Manfred Spraul (manfreds@colorfullife.com)
Fri, 05 Nov 1999 20:01:01 +0100


shm_prm is declared in ipc/shm.c:
unsigned int shm_prm[3] = {,,};
there is an extern in kernel/sysctl.c:
extern size_t shm_prm[];

and it is written by do_proc_doulongvec_minmax(), and this function uses
an (unsigned long *) pointer to write the array.

AFAICS, this will fail on 64-bit platforms,

Manfred

-
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/