]> git.baikalelectronics.ru Git - kernel.git/commit
[IPVS]: Make sure ip_vs_ftp ports are valid: module_param_array approach
authorSimon Horman <horms@verge.net.au>
Thu, 28 Sep 2006 05:53:24 +0000 (22:53 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 29 Sep 2006 01:02:56 +0000 (18:02 -0700)
commit64c711438a8d7fa9a69174af51611869ce5928a9
tree7070f82b1f85780927e69abe8d8aa50bed9655cd
parent5bd0af9a6fd8970206a108bdeede6df48e299861
[IPVS]: Make sure ip_vs_ftp ports are valid: module_param_array approach

I'm not entirely sure what happens in the case of a valid port,
at best it'll be silently ignored. This patch ensures that
the port values are unsigned short values, and thus always valid.

This is a second take at fixing this problem, it is simpler
and arguably more correct than the previous approach
that was committed as bc7e7864d5ecc3903e0f1df62c3990475438ec53.
Prior to this patch a patch that reverses
bc7e7864d5ecc3903e0f1df62c3990475438ec53 was sent.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipvs/ip_vs_ftp.c