]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: use nlmsg_notify() in rtnetlink_send()
authorYajun Deng <yajun.deng@linux.dev>
Thu, 15 Jul 2021 12:12:57 +0000 (20:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jul 2021 17:46:35 +0000 (10:46 -0700)
commit9cf89df7422be773e3a5062fb83bbdfe15f0265b
treec9a402aa34bd927d16e878c8205adc275d534daa
parentbdb4a7001339cd17189d37e10ac22e89c7a82df9
rtnetlink: use nlmsg_notify() in rtnetlink_send()

The netlink_{broadcast, unicast} don't deal with 'if (err > 0' statement
but nlmsg_{multicast, unicast} do. The nlmsg_notify() contains them.
so use nlmsg_notify() instead. so that the caller wouldn't deal with
'if (err > 0' statement.

v2: use nlmsg_notify() will do well.

Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c