net: diag: Add the ability to destroy a socket.
authorLorenzo Colitti <lorenzo@google.com>
Wed, 16 Dec 2015 03:30:03 +0000 (12:30 +0900)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 7 Apr 2016 11:19:53 +0000 (16:49 +0530)
commit7ae15a607bb106627859da621bd7543d44a6b61d
tree9b07415b9dee41975fbf08763f0ca9dce6dc2b39
parentc3b67e21677e5967e04e84861f7b67b456d7a7c4
net: diag: Add the ability to destroy a socket.

This patch adds a SOCK_DESTROY operation, a destroy function
pointer to sock_diag_handler, and a diag_destroy function
pointer.  It does not include any implementation code.

[backport of net-next 64be0aed59ad519d6f2160868734f7e278290ac1]

Change-Id: Ic5327ff14b39dd268083ee4c1dc2c934b2820df5
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/sock_diag.h
include/net/sock.h
include/uapi/linux/sock_diag.h
net/core/sock_diag.c