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)
committerLorenzo Colitti <lorenzo@google.com>
Thu, 25 Feb 2016 00:01:21 +0000 (09:01 +0900)
commitf340b7c9ecf2daeb454df421b7cc4b0ca74bc545
tree94e3cf522ea5d737ca6422201a29e3d806518dd5
parent6b3d21c649a8b71c44543dc5933f7aa1c2a7a390
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