sock_diag: fetch source port from inet_sock
authorCraig Gallek <kraig@google.com>
Wed, 17 Jun 2015 14:59:10 +0000 (10:59 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 Jun 2015 17:16:50 +0000 (10:16 -0700)
When an inet_sock is destroyed, its source port (sk_num) is set to
zero as part of the unhash procedure.  In order to supply a source
port as part of the NETLINK_SOCK_DIAG socket destruction broadcasts,
the source port number must be read from inet_sport instead.

Tested: ss -E
Signed-off-by: Craig Gallek <kraig@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_diag.c

Simple merge