From: Alan Cox Date: Thu, 25 Oct 2012 05:22:01 +0000 (+0000) Subject: l2tp: session is an array not a pointer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e269ed26d4c9e6da1614709c1bf4c50ff8c8c5b3;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git l2tp: session is an array not a pointer Signed-off-by: Alan Cox Signed-off-by: David S. Miller --- diff --git a/net/l2tp/l2tp_netlink.c b/net/l2tp/l2tp_netlink.c index 6c4cc12c7414..bbba3a19e944 100644 --- a/net/l2tp/l2tp_netlink.c +++ b/net/l2tp/l2tp_netlink.c @@ -632,7 +632,7 @@ static int l2tp_nl_session_send(struct sk_buff *skb, u32 portid, u32 seq, int fl nla_put_u16(skb, L2TP_ATTR_MRU, session->mru))) goto nla_put_failure; - if ((session->ifname && session->ifname[0] && + if ((session->ifname[0] && nla_put_string(skb, L2TP_ATTR_IFNAME, session->ifname)) || (session->cookie_len && nla_put(skb, L2TP_ATTR_COOKIE, session->cookie_len,