From nobody Mon Aug 14 12:47:20 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RPZ142C7kz4qRqs; Mon, 14 Aug 2023 12:47:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RPZ141d99z3CVr; Mon, 14 Aug 2023 12:47:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692017240; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SJSkxUed4P0A0pFXyynfGMWcPVzndUXd0ocxlGuoEA4=; b=BACGKsb3Yfmw8wG5CyYgHOqMvELAQ9UtNZQgBw3CroTTMJqqsn3bVIcRVHuNIpuIgSTZbq bjMwsakU8A2CopFaoLQsbpFwhy7BKfgvydy2RNuhBlBRQFDcQgsdwrjA02Lg4flw+ZDliz FgeblWZOtU+P+jnmyQOwvGdUhlshYQGn6MpCYvFSKFcai+YYUHAg1nKmsgWhMd5l2J12qa 0oW1GvyKEx9upv1UXSswT0DN05u1UPHGj3qa0hD3iRCcZINrFdZ1Tg2VPuWFD4lcV/oYyw D2mzcclx2xUl8SylC4rLl5iU/Zu0jabdUEwWvYlXiSvWh7TcQBVCYpx/qwZgfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692017240; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SJSkxUed4P0A0pFXyynfGMWcPVzndUXd0ocxlGuoEA4=; b=iEgduj0Kt01+kdglUCrgrP/2qaIoRwBzGQ6GXX30dx20yVOJjc4owgmanLa4Kx1M1CayW2 ouWKn5qDwLVqfWvo/aPMRUDLHte5F4L8DImrt0+pwjQIpXsZ47eNc+cyAuGn/ogIRFREhL bK/aYPbmwMidJ7q9bUI0TKjsz5e5YmVHgmTF47RPYeZWF1qsPWtxveKSYnk/yqv3Rb9Xei mUepSiMPYY6SQtSvMFzgFQOhiNhyD0RaTFLMld2+I+JFW/7MoPZpQDum5m71DItARZidr7 CBMXoNbawkbrBXWQcmt+A9oazsKxnnVW/jyxCoM5aGyFxOqiTyL9omL5yxD73Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692017240; a=rsa-sha256; cv=none; b=SW06L/hIcrUmtZ+MdT6qT/4J5qReupcAcz3lHyLU7q0zl18WQYyfcU4tgn6UUCPFnwJxlV sYib2pak/R1FJlIqKjG17Un7Jf68Bls4ZAw04KUdHE4qVt7wWjpSJEykC/V/uyC0xRyntx Kwjjj+mp1qLEuP4t0G09JMncQpw2NFKSLojcT+Adfnyh7i4q7wcoIN17wZjrTMoMhFkkdi piRh0UYIdvcGMc1H+ZyMCbxaNt/j/oNIgOc+XLok109RobMbSvRxLmk7J7RXOhhUEr3YL+ ROv30U4RPxIBjm+ms5vwR6+7XEyphuQCyjmxQIbWydrZO6NHqUnincP0oDOruQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RPZ140kTyzTgT; Mon, 14 Aug 2023 12:47:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37EClKeX044419; Mon, 14 Aug 2023 12:47:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37EClK31044416; Mon, 14 Aug 2023 12:47:20 GMT (envelope-from git) Date: Mon, 14 Aug 2023 12:47:20 GMT Message-Id: <202308141247.37EClK31044416@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Chagin Subject: git: 9d0c9b6d6a6a - main - linux(4): Add a comment explaining udata freeing on error List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9d0c9b6d6a6a90f626088308dfb895221bf6d36f Auto-Submitted: auto-generated The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=9d0c9b6d6a6a90f626088308dfb895221bf6d36f commit 9d0c9b6d6a6a90f626088308dfb895221bf6d36f Author: Dmitry Chagin AuthorDate: 2023-08-14 12:46:12 +0000 Commit: Dmitry Chagin CommitDate: 2023-08-14 12:46:12 +0000 linux(4): Add a comment explaining udata freeing on error MFC after: 1 week --- 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 90a1cf879517..bd4b536e13d0 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -1876,6 +1876,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;