]> git.baikalelectronics.ru Git - kernel.git/commit
scm: lower SCM_MAX_FD
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 23 Nov 2010 14:09:15 +0000 (14:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Nov 2010 19:16:43 +0000 (11:16 -0800)
commitfd5048d6eb5bd4b4fa454ac91a5d60df68a6fd96
treeb771ef780aa0808d3eb7827d527920c07215c4fa
parent8c7d16acd7349c6cc9896042a671511baea888fa
scm: lower SCM_MAX_FD

Lower SCM_MAX_FD from 255 to 253 so that allocations for scm_fp_list are
halved. (commit 1cd9859a added two pointers in this structure)

scm_fp_dup() should not copy whole structure (and trigger kmemcheck
warnings), but only the used part. While we are at it, only allocate
needed size.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/scm.h
net/core/scm.c