Patch "l2tp: Fix error creating L2TP tunnels" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
l2tp: Fix error creating L2TP tunnels
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
l2tp-fix-error-creating-l2tp-tunnels.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Mon Feb 29 14:33:50 PST 2016
From: Mark Tomlinson <[email protected]>
Date: Mon, 15 Feb 2016 16:24:44 +1300
Subject: l2tp: Fix error creating L2TP tunnels
From: Mark Tomlinson <[email protected]>
[ Upstream commit 853effc55b0f975abd6d318cca486a9c1b67e10f ]
A previous commit (33f72e6) added notification via netlink for tunnels when created/modified/deleted. If the notification returned an error, this error was returned from the tunnel function. If there were no listeners, the error code ESRCH was returned, even though having no listeners is not an error. Other calls to this and other similar notification functions either ignore the error code, or filter ESRCH. This patch checks for ESRCH and does not flag this as an error.
--- net/l2tp/l2tp_netlink.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)
net/l2tp/l2tp_netlink.c +14 -4
@@ -124,8 +124,13 @@ static int l2tp_tunnel_notify(struct gen ret =l2tp_nl_tunnel_send (msg, info->snd_portid, info->snd_seq,NLM_F_ACK , tunnel, cmd); -if (ret >=0 ) -return genlmsg_multicast_allns (family, msg,0 ,0 ,GFP_ATOMIC ); +if (ret >=0 ) { + ret =genlmsg_multicast_allns (family, msg,0 ,0 ,GFP_ATOMIC ); +/* We don't care if no one is listening */ +if (ret == -ESRCH ) + ret =0 ; +return ret; + }nlmsg_free (msg);
@@ -147,8 +152,13 @@ static int l2tp_session_notify(struct ge ret =l2tp_nl_session_send (msg, info->snd_portid, info->snd_seq,NLM_F_ACK , session, cmd); -if (ret >=0 ) -return genlmsg_multicast_allns (family, msg,0 ,0 ,GFP_ATOMIC ); +if (ret >=0 ) { + ret =genlmsg_multicast_allns (family, msg,0 ,0 ,GFP_ATOMIC ); +/* We don't care if no one is listening */ +if (ret == -ESRCH ) + ret =0 ; +return ret; + }nlmsg_free (msg);
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/l2tp-fix-error-creating-l2tp-tunnels.patch