kernel: bump 3.18 to 3.18.119
[openwrt/openwrt.git] / target / linux / generic / pending-3.18 / 081-08-pppoe-fix-memory-corruption-in-padt-work-structure.patch
index 147e9712dbc356a9571e5848757fcd91e977c40c..8637746b5b74c3abe22f0a285f365764d81aa293 100644 (file)
@@ -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;
                }