diff options
-rw-r--r-- | net/netlink/af_netlink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 0b92f75491b1..ca5276c51804 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -1676,7 +1676,7 @@ static int netlink_dump(struct sock *sk) | |||
1676 | 1676 | ||
1677 | skb = sock_rmalloc(sk, alloc_size, 0, GFP_KERNEL); | 1677 | skb = sock_rmalloc(sk, alloc_size, 0, GFP_KERNEL); |
1678 | if (!skb) | 1678 | if (!skb) |
1679 | goto errout; | 1679 | goto errout_skb; |
1680 | 1680 | ||
1681 | len = cb->dump(skb, cb); | 1681 | len = cb->dump(skb, cb); |
1682 | 1682 | ||
@@ -1716,7 +1716,6 @@ static int netlink_dump(struct sock *sk) | |||
1716 | errout_skb: | 1716 | errout_skb: |
1717 | mutex_unlock(nlk->cb_mutex); | 1717 | mutex_unlock(nlk->cb_mutex); |
1718 | kfree_skb(skb); | 1718 | kfree_skb(skb); |
1719 | errout: | ||
1720 | return err; | 1719 | return err; |
1721 | } | 1720 | } |
1722 | 1721 | ||