]> git.itanic.dy.fi Git - linux-stable/commitdiff
net: drop_monitor: fix the value of maxattr
authorChangli Gao <xiaosuo@gmail.com>
Sun, 8 Dec 2013 14:36:56 +0000 (09:36 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 15 Feb 2014 19:20:08 +0000 (19:20 +0000)
[ Upstream commit d323e92cc3f4edd943610557c9ea1bb4bb5056e8 ]

maxattr in genl_family should be used to save the max attribute
type, but not the max command type. Drop monitor doesn't support
any attributes, so we should leave it as zero.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/core/drop_monitor.c

index b856f87e63d27e9f75d5f95ef6a976f06bb11884..1d9a52929baddbc22a2b0c70b6fa3517b2903d6c 100644 (file)
@@ -61,7 +61,6 @@ static struct genl_family net_drop_monitor_family = {
        .hdrsize        = 0,
        .name           = "NET_DM",
        .version        = 2,
-       .maxattr        = NET_DM_CMD_MAX,
 };
 
 static DEFINE_PER_CPU(struct per_cpu_dm_data, dm_cpu_data);