]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
scm: lower SCM_MAX_FD
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 23 Nov 2010 14:09:15 +0000 (14:09 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Nov 2011 20:32:45 +0000 (12:32 -0800)
commit6719bac67645ca27b2e74726387705b589a89a24
tree5991c267ef3cc89d86760121e3a5e7f77b88889f
parent2bc360b3483676fd47f7cd377d9464707bd80902
scm: lower SCM_MAX_FD

commit bba14de98753cb6599a2dae0e520714b2153522d upstream.

Lower SCM_MAX_FD from 255 to 253 so that allocations for scm_fp_list are
halved. (commit f8d570a4 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/net/scm.h
net/core/scm.c