diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2017-03-31 11:02:29 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-05 12:40:18 (GMT) |
commit | 599e6f038777c6733eef244d4aac192edb612aa6 (patch) | |
tree | 244f0f413f4713fedf4524f51cb04b1c071af69d /net/wireless/nl80211.h | |
parent | d9face6fc62a73059f0fc3a3de4dfe8f53536aa7 (diff) | |
download | linux-599e6f038777c6733eef244d4aac192edb612aa6.tar.xz |
l2tp: hold session while sending creation notifications
commit 5e6a9e5a3554a5b3db09cdc22253af1849c65dff upstream.
l2tp_session_find() doesn't take any reference on the returned session.
Therefore, the session may disappear while sending the notification.
Use l2tp_session_get() instead and decrement session's refcount once
the notification is sent.
Fixes: 33f72e6f0c67 ("l2tp : multicast notification to the registered listeners")
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/wireless/nl80211.h')
0 files changed, 0 insertions, 0 deletions