diff options
Diffstat (limited to 'net/netlink/af_netlink.c')
-rw-r--r-- | net/netlink/af_netlink.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 29fef558aab6..626a58206298 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -1405,6 +1405,17 @@ out_sock_release: | |||
1405 | } | 1405 | } |
1406 | EXPORT_SYMBOL(netlink_kernel_create); | 1406 | EXPORT_SYMBOL(netlink_kernel_create); |
1407 | 1407 | ||
1408 | |||
1409 | void | ||
1410 | netlink_kernel_release(struct sock *sk) | ||
1411 | { | ||
1412 | if (sk == NULL || sk->sk_socket == NULL) | ||
1413 | return; | ||
1414 | sock_release(sk->sk_socket); | ||
1415 | } | ||
1416 | EXPORT_SYMBOL(netlink_kernel_release); | ||
1417 | |||
1418 | |||
1408 | /** | 1419 | /** |
1409 | * netlink_change_ngroups - change number of multicast groups | 1420 | * netlink_change_ngroups - change number of multicast groups |
1410 | * | 1421 | * |