socket: Fix a bug in soreceive() for the MSG_OOB case
authorAaron LI <aly@aaronly.me>
Wed, 1 Nov 2023 04:45:14 +0000 (12:45 +0800)
committerAaron LI <aly@aaronly.me>
Sun, 5 Nov 2023 02:04:39 +0000 (10:04 +0800)
commit387ce9a64f59a6ad19b226fffac4272072b09db5
tree239f9fe443bc88af5fe51e0adaa68909e99de286
parent2a98b0e0d4aa48b8c50a866f4c054f37b556dca2
socket: Fix a bug in soreceive() for the MSG_OOB case

For the MSG_OOB case, soreceive() was failing to traverse the mbuf chain
when supplying the sio to return the data.  Fix the bug by adding the
missing 'm = m_free(m)'.

While there, update the description about function parameters.

Reviewed-by: dillon
sys/kern/uipc_socket.c