git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
e1000e: DoS while TSO enabled caused by link partner with small MSS
[pandora-kernel.git]
/
drivers
/
net
/
veth.c
diff --git
a/drivers/net/veth.c
b/drivers/net/veth.c
index
5b23767
..
b907398
100644
(file)
--- a/
drivers/net/veth.c
+++ b/
drivers/net/veth.c
@@
-17,6
+17,7
@@
#include <net/dst.h>
#include <net/xfrm.h>
#include <linux/veth.h>
#include <net/dst.h>
#include <net/xfrm.h>
#include <linux/veth.h>
+#include <linux/module.h>
#define DRV_NAME "veth"
#define DRV_VERSION "1.0"
#define DRV_NAME "veth"
#define DRV_VERSION "1.0"
@@
-422,7
+423,9
@@
static void veth_dellink(struct net_device *dev, struct list_head *head)
unregister_netdevice_queue(peer, head);
}
unregister_netdevice_queue(peer, head);
}
-static const struct nla_policy veth_policy[VETH_INFO_MAX + 1];
+static const struct nla_policy veth_policy[VETH_INFO_MAX + 1] = {
+ [VETH_INFO_PEER] = { .len = sizeof(struct ifinfomsg) },
+};
static struct rtnl_link_ops veth_link_ops = {
.kind = DRV_NAME,
static struct rtnl_link_ops veth_link_ops = {
.kind = DRV_NAME,