]> www.infradead.org Git - users/jedix/linux-maple.git/commit
l2tp: Fix error creating L2TP tunnels
authorMark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Mon, 15 Feb 2016 03:24:44 +0000 (16:24 +1300)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:45:23 +0000 (15:45 -0700)
commitf6e3bb10210477a4af0138faa22a855f84da9569
treebc6a3a7324c8b01a0c3a45341df9475c70cbaf4c
parent3c9ddb079f1c5c00d853f788f13f108d06a99d6e
l2tp: Fix error creating L2TP tunnels

Orabug: 23330956

[ 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.

Reviewed-by: Hamish Martin <hamish.martin@alliedtelesis.co.nz>
Signed-off-by: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 89afe37040ed95a8959d67efc784a27948f0a76f)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
net/l2tp/l2tp_netlink.c