diag.c (0898782247ae533d1f4e47a06bc5d4870931b284) diag.c (01757f536ac825e3614d583fee9acb48c64ed084)
1// SPDX-License-Identifier: GPL-2.0-only
2#include <linux/types.h>
3#include <linux/spinlock.h>
4#include <linux/sock_diag.h>
5#include <linux/unix_diag.h>
6#include <linux/skbuff.h>
7#include <linux/module.h>
8#include <linux/uidgid.h>

--- 281 unchanged lines hidden (view full) ---

290 if (err < 0) {
291 nlmsg_free(rep);
292 extra_len += 256;
293 if (extra_len >= PAGE_SIZE)
294 goto out;
295
296 goto again;
297 }
1// SPDX-License-Identifier: GPL-2.0-only
2#include <linux/types.h>
3#include <linux/spinlock.h>
4#include <linux/sock_diag.h>
5#include <linux/unix_diag.h>
6#include <linux/skbuff.h>
7#include <linux/module.h>
8#include <linux/uidgid.h>

--- 281 unchanged lines hidden (view full) ---

290 if (err < 0) {
291 nlmsg_free(rep);
292 extra_len += 256;
293 if (extra_len >= PAGE_SIZE)
294 goto out;
295
296 goto again;
297 }
298 err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid,
299 MSG_DONTWAIT);
300 if (err > 0)
301 err = 0;
298 err = nlmsg_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid);
299
302out:
303 if (sk)
304 sock_put(sk);
305out_nosk:
306 return err;
307}
308
309static int unix_diag_handler_dump(struct sk_buff *skb, struct nlmsghdr *h)

--- 35 unchanged lines hidden ---
300out:
301 if (sk)
302 sock_put(sk);
303out_nosk:
304 return err;
305}
306
307static int unix_diag_handler_dump(struct sk_buff *skb, struct nlmsghdr *h)

--- 35 unchanged lines hidden ---