diff options
Diffstat (limited to 'net/unix')
-rw-r--r-- | net/unix/diag.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/unix/diag.c b/net/unix/diag.c index 39e44c98176a..c5bdbcb1c30b 100644 --- a/net/unix/diag.c +++ b/net/unix/diag.c | |||
@@ -86,8 +86,7 @@ static int sk_diag_dump_icons(struct sock *sk, struct sk_buff *nlskb) | |||
86 | */ | 86 | */ |
87 | unix_state_lock_nested(req); | 87 | unix_state_lock_nested(req); |
88 | peer = unix_sk(req)->peer; | 88 | peer = unix_sk(req)->peer; |
89 | if (peer) | 89 | buf[i++] = (peer ? sock_i_ino(peer) : 0); |
90 | buf[i++] = sock_i_ino(peer); | ||
91 | unix_state_unlock(req); | 90 | unix_state_unlock(req); |
92 | } | 91 | } |
93 | spin_unlock(&sk->sk_receive_queue.lock); | 92 | spin_unlock(&sk->sk_receive_queue.lock); |