Re: route sockets: simplify route_attach() error path

2021-02-11 Thread Alexander Bluhm
On Wed, Feb 10, 2021 at 10:51:52PM +0300, Vitaliy Makkoveev wrote: > Do soreserve() before `rop' allocation. It doesn't require protocol > control block be attached to socket. Also we always call `pr_attach' in > thread context so we always have `curproc'. While I found one pr_attach() from TCP

route sockets: simplify route_attach() error path

2021-02-10 Thread Vitaliy Makkoveev
Do soreserve() before `rop' allocation. It doesn't require protocol control block be attached to socket. Also we always call `pr_attach' in thread context so we always have `curproc'. ok? Index: sys/net/rtsock.c === RCS file: