]> git.baikalelectronics.ru Git - kernel.git/commit
Cap shmmax at INT_MAX in compat shminfo
authorGuy Streeter <streeter@redhat.com>
Tue, 8 May 2007 07:25:12 +0000 (00:25 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:00 +0000 (11:15 -0700)
commit98b52d4cc985d2322f3b0bc85fb764bfe9710d17
tree424f1417dd3c7ace9323aaca4b7b757c8bb7af03
parent92c81321d86a1739b19d83f00f4115f692f2257f
Cap shmmax at INT_MAX in compat shminfo

The value of shmmax may be larger than will fit in the struct used by
the 32bit compat version of sys_shmctl. This change mirrors what the
normal sys_shmctl does when called with the old IPC_INFO command.

Signed-off-by: Guy Streeter <streeter@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
ipc/compat.c