aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/pending-3.18/081-08-pppoe-fix-memory-corruption-in-padt-work-structure.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/generic/pending-3.18/081-08-pppoe-fix-memory-corruption-in-padt-work-structure.patch')
-rw-r--r--target/linux/generic/pending-3.18/081-08-pppoe-fix-memory-corruption-in-padt-work-structure.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/generic/pending-3.18/081-08-pppoe-fix-memory-corruption-in-padt-work-structure.patch b/target/linux/generic/pending-3.18/081-08-pppoe-fix-memory-corruption-in-padt-work-structure.patch
index 147e9712db..8637746b5b 100644
--- a/target/linux/generic/pending-3.18/081-08-pppoe-fix-memory-corruption-in-padt-work-structure.patch
+++ b/target/linux/generic/pending-3.18/081-08-pppoe-fix-memory-corruption-in-padt-work-structure.patch
@@ -62,9 +62,9 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
- INIT_WORK(&po->proto.pppoe.padt_work, pppoe_unbind_sock_work);
-
error = -EINVAL;
- if (sp->sa_protocol != PX_PROTO_OE)
- goto end;
-@@ -645,8 +646,13 @@ static int pppoe_connect(struct socket *
+
+ if (sockaddr_len != sizeof(struct sockaddr_pppox))
+@@ -649,8 +650,13 @@ static int pppoe_connect(struct socket *
po->pppoe_dev = NULL;
}