HomeFreeBSD

socket: Release cred reference later in sodealloc()

Description

socket: Release cred reference later in sodealloc()

We dereference so->so_cred to update the per-uid socket buffer
accounting, so the crfree() call must be deferred until after that
point.

PR: 255869

(cherry picked from commit b295c5ddcef4744ef7044d2327b4258b6ad055f0)

Details

Provenance
Lv Yunlong <lylgood@foxmail.com>Authored on May 18 2021, 7:23 PM
markjCommitted on May 25 2021, 1:28 PM
Parents
rGc66c9ae5dc4b: ttydev_write: prevent stops while terminal is busied
Branches
Unknown
Tags
Unknown