Thread (62 messages) 62 messages, 4 authors, 2018-10-08

Re: [PATCH net-next 12/20] rtnetlink: Update ipmr_rtm_dumplink for strict data checking

From: David Ahern <hidden>
Date: 2018-10-08 08:42:04

On 10/7/18 4:40 AM, Christian Brauner wrote:
quoted
@@ -2718,6 +2743,13 @@ static int ipmr_rtm_dumplink(struct sk_buff *skb, struct netlink_callback *cb)
 	unsigned int e = 0, s_e;
 	struct mr_table *mrt;
 
+	if (cb->strict_check) {
+		int err = ipmr_valid_dumplink(cb->nlh, cb->extack);
+
+		if (err)
+			return err;
Nit: can we remove the unnecessary \n, please.
Coding standards dictate a newline between declarations and code. And
that is my preference too.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help