git: 1b1cf17660de - stable/13 - linux(4): Add a comment explaining udata freeing on error
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Aug 2023 11:41:19 UTC
The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=1b1cf17660ded2e13731190ea1e0b9e039fa4ed6 commit 1b1cf17660ded2e13731190ea1e0b9e039fa4ed6 Author: Dmitry Chagin <dchagin@FreeBSD.org> AuthorDate: 2023-08-14 12:46:12 +0000 Commit: Dmitry Chagin <dchagin@FreeBSD.org> CommitDate: 2023-08-21 10:39:05 +0000 linux(4): Add a comment explaining udata freeing on error MFC after: 1 week (cherry picked from commit 9d0c9b6d6a6a90f626088308dfb895221bf6d36f) --- sys/compat/linux/linux_socket.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c index 5db366b58401..ba17e38c1c64 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -1871,6 +1871,7 @@ linux_recvmsg_common(struct thread *td, l_int s, struct l_msghdr *msghdr, break; } + /* The recvmsg_scm_ is responsible to free udata on error. */ if (error != 0) goto bad;