aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2024-04-18 09:51:05 +0000
committerDavid S. Miller <[email protected]>2024-04-19 11:39:20 +0000
commit7e4975f7e7fb0eba3cbb69d9c467750a1c3ce131 (patch)
treeb90e427ece807db017417b4fbc08774949e74eca /net/unix/sysctl_net_unix.c
parentneighbour: add RCU protection to neigh_tables[] (diff)
downloadkernel-7e4975f7e7fb0eba3cbb69d9c467750a1c3ce131.tar.gz
kernel-7e4975f7e7fb0eba3cbb69d9c467750a1c3ce131.zip
neighbour: fix neigh_dump_info() return value
Change neigh_dump_table() and pneigh_dump_table() to either return 0 or -EMSGSIZE if not enough space was available in the skb. Then neigh_dump_info() can do the same. This allows NLMSG_DONE to be appended to the current skb at the end of a dump, saving a couple of recvmsg() system calls. Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions