From: Jozsef Kadlecsik Date: Thu, 20 Jan 2011 09:26:44 +0000 (+0100) Subject: The module parameter max_sets should be unsigned int X-Git-Tag: v5.4~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfb2375a3a0d018b1f3dac518126e0dff9191e78;p=thirdparty%2Fipset.git The module parameter max_sets should be unsigned int Negative set numbers are strange :-) (Patrick McHardy's review) --- diff --git a/kernel/ip_set_core.c b/kernel/ip_set_core.c index 9761487b..ebd37fa5 100644 --- a/kernel/ip_set_core.c +++ b/kernel/ip_set_core.c @@ -31,7 +31,7 @@ static ip_set_id_t ip_set_max = CONFIG_IP_SET_MAX; /* max number of sets */ #define STREQ(a, b) (strncmp(a, b, IPSET_MAXNAMELEN) == 0) -static int max_sets; +static unsigned int max_sets; module_param(max_sets, int, 0600); MODULE_PARM_DESC(max_sets, "maximal number of sets");