Skip to content

Commit d323e92

Browse files
xiaosuodavem330
authored andcommitted
net: drop_monitor: fix the value of maxattr
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>
1 parent ec21b6b commit d323e92

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎net/core/drop_monitor.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ static struct genl_family net_drop_monitor_family = {
6464
.hdrsize = 0,
6565
.name = "NET_DM",
6666
.version = 2,
67-
.maxattr = NET_DM_CMD_MAX,
6867
};
6968

7069
static DEFINE_PER_CPU(struct per_cpu_dm_data, dm_cpu_data);

0 commit comments

Comments
 (0)