Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Merge net into net-next to setup some infrastructure Eric Dumazet needs for usbnet changes. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -571,7 +571,7 @@ static int genl_family_rcv_msg(struct genl_family *family,
|
||||
!capable(CAP_NET_ADMIN))
|
||||
return -EPERM;
|
||||
|
||||
if (nlh->nlmsg_flags & NLM_F_DUMP) {
|
||||
if ((nlh->nlmsg_flags & NLM_F_DUMP) == NLM_F_DUMP) {
|
||||
struct netlink_dump_control c = {
|
||||
.dump = ops->dumpit,
|
||||
.done = ops->done,
|
||||
@@ -877,8 +877,10 @@ static int ctrl_getfamily(struct sk_buff *skb, struct genl_info *info)
|
||||
#ifdef CONFIG_MODULES
|
||||
if (res == NULL) {
|
||||
genl_unlock();
|
||||
up_read(&cb_lock);
|
||||
request_module("net-pf-%d-proto-%d-family-%s",
|
||||
PF_NETLINK, NETLINK_GENERIC, name);
|
||||
down_read(&cb_lock);
|
||||
genl_lock();
|
||||
res = genl_family_find_byname(name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user