mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net
The BTF conflicts were simple overlapping changes. The virtio_net conflict was an overlap of a fix of statistics counter, happening alongisde a move over to a bonafide statistics structure rather than counting value on the stack. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
commit
89b1698c93
239 changed files with 2004 additions and 915 deletions
|
|
@ -63,6 +63,7 @@
|
|||
#include <linux/hash.h>
|
||||
#include <linux/genetlink.h>
|
||||
#include <linux/net_namespace.h>
|
||||
#include <linux/nospec.h>
|
||||
|
||||
#include <net/net_namespace.h>
|
||||
#include <net/netns/generic.h>
|
||||
|
|
@ -679,6 +680,7 @@ static int netlink_create(struct net *net, struct socket *sock, int protocol,
|
|||
|
||||
if (protocol < 0 || protocol >= MAX_LINKS)
|
||||
return -EPROTONOSUPPORT;
|
||||
protocol = array_index_nospec(protocol, MAX_LINKS);
|
||||
|
||||
netlink_lock_table();
|
||||
#ifdef CONFIG_MODULES
|
||||
|
|
@ -1009,6 +1011,11 @@ static int netlink_bind(struct socket *sock, struct sockaddr *addr,
|
|||
return err;
|
||||
}
|
||||
|
||||
if (nlk->ngroups == 0)
|
||||
groups = 0;
|
||||
else
|
||||
groups &= (1ULL << nlk->ngroups) - 1;
|
||||
|
||||
bound = nlk->bound;
|
||||
if (bound) {
|
||||
/* Ensure nlk->portid is up-to-date. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue