Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03ac738d authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

rtnetlink: fix missing size for IFLA_IF_NETNSID



The size for IFLA_IF_NETNSID is missing from the size calculation
because the proceeding semicolon was not removed. Fix this by removing
the semicolon.

Detected by CoverityScan, CID#1461135 ("Structurally dead code")

Fixes: 79e1ad14 ("rtnetlink: use netnsid to query interface")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarJiri Benc <jbenc@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ac71a1f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -920,7 +920,7 @@ static noinline size_t if_nlmsg_size(const struct net_device *dev,
	       + rtnl_xdp_size() /* IFLA_XDP */
	       + nla_total_size(4)  /* IFLA_EVENT */
	       + nla_total_size(4)  /* IFLA_NEW_NETNSID */
	       + nla_total_size(1); /* IFLA_PROTO_DOWN */
	       + nla_total_size(1)  /* IFLA_PROTO_DOWN */
	       + nla_total_size(4)  /* IFLA_IF_NETNSID */
	       + 0;
}