Message ID | 53D12ECB.2040600@oracle.com |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 1b38f7f..81d86b9 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -2331,7 +2331,7 @@ static int netlink_sendmsg(struct kiocb *kiocb, struct socket *so err = scm_send(sock, msg, siocb->scm, true); if (err < 0) return err; - + BUG_ON(msg->msg_namelen && !msg->msg_name); if (msg->msg_namelen) { err = -EINVAL; if (addr->nl_family != AF_NETLINK)