diff options
Diffstat (limited to 'net/unix')
-rw-r--r-- | net/unix/diag.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/unix/diag.c b/net/unix/diag.c index 86fa0f3b2caf..ef542fbca9fe 100644 --- a/net/unix/diag.c +++ b/net/unix/diag.c | |||
@@ -155,7 +155,8 @@ static int sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct unix_diag_r | |||
155 | if (nla_put_u8(skb, UNIX_DIAG_SHUTDOWN, sk->sk_shutdown)) | 155 | if (nla_put_u8(skb, UNIX_DIAG_SHUTDOWN, sk->sk_shutdown)) |
156 | goto out_nlmsg_trim; | 156 | goto out_nlmsg_trim; |
157 | 157 | ||
158 | return nlmsg_end(skb, nlh); | 158 | nlmsg_end(skb, nlh); |
159 | return 0; | ||
159 | 160 | ||
160 | out_nlmsg_trim: | 161 | out_nlmsg_trim: |
161 | nlmsg_cancel(skb, nlh); | 162 | nlmsg_cancel(skb, nlh); |