Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

avoid OPEN_MAX in SCM_MAX_FD

The OPEN_MAX constant is an arbitrary number with no useful relation to
anything. Nothing should be using it. SCM_MAX_FD is just an arbitrary
constant and it should be clear that its value is chosen in net/scm.h
and not actually derived from anything else meaningful in the system.

Signed-off-by: Roland McGrath <roland@redhat.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Roland McGrath and committed by
Linus Torvalds
c09edd6e f4480240

+1 -1
+1 -1
include/net/scm.h
··· 8 8 /* Well, we should have at least one descriptor open 9 9 * to accept passed FDs 8) 10 10 */ 11 - #define SCM_MAX_FD (OPEN_MAX-1) 11 + #define SCM_MAX_FD 255 12 12 13 13 struct scm_fp_list 14 14 {