tipc: unconditionally put sock refcnt when sock timer to be deleted is pending
authorYing Xue <ying.xue@windriver.com>
Thu, 28 May 2015 05:19:22 +0000 (13:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2015 01:08:37 +0000 (18:08 -0700)
commit1ea23a21176e449685a9d0523ab6da83e3779eb1
tree0e94b86cd5aff3b37351e0bb9ad203fa7d340bac
parentf4fb874cf076f9eafdd15c0a88cd0f0397b95e43
tipc: unconditionally put sock refcnt when sock timer to be deleted is pending

As sock refcnt is taken when sock timer is started in
sk_reset_timer(), the sock refcnt should be put when sock timer
to be deleted is in pending state no matter what "probing_state"
value of tipc sock is.

Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c