From nobody Fri Jun 17 19:37:46 2022 X-Original-To: dev-commits-src-all@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 702DF85ABA3; Fri, 17 Jun 2022 19:37:47 +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 4LPq7t3Dw5z3Q4s; Fri, 17 Jun 2022 19:37:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494666; 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=vf4vtai6BJcBxak/JPzGjztK+8oTwLNQX1JkIRArWL8=; b=cLaj7HY8MakwAkWfQ7Gvpj0fI6DREEX/0Gqh17fiyUM2tLqFT0vqQtf601YO3B+W63OHYp MVndXVzrP0BRa4tpIbT2A7BT109zyK0wxwGA4Z66ahBQ6THbt5PiHKo6hV1gkONm5OV4YR DN/OPsCjwBjsm9ZfhomkKpexoD0+7kDtb3hvPygjRrg5AbhnVv856U05wn7dyRSNVPUlyC d0CiRmgKlA+nouNpoGhv6bmhUfTNvuMUzB6pGWz5lQP4NCZd6JyfoLUe5Wnh2ptym7FVeY dCl3OXdJQrlt9WN4mRshSWAe3CGvL/FkMIrSBa7ATuhyV3XkG/MzciUBSe8O2g== 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 1FAF625A34; Fri, 17 Jun 2022 19:37:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25HJbkA5013791; Fri, 17 Jun 2022 19:37:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25HJbkFI013790; Fri, 17 Jun 2022 19:37:46 GMT (envelope-from git) Date: Fri, 17 Jun 2022 19:37:46 GMT Message-Id: <202206171937.25HJbkFI013790@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: 0ea12e483d96 - stable/13 - linux(4): Move len variable initialization to the appropriate place. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 0ea12e483d96a6ea4ed6f65167da612b45098ed4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494666; 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=vf4vtai6BJcBxak/JPzGjztK+8oTwLNQX1JkIRArWL8=; b=BZLeGAWyn9VjYiw3l9RmOsE6Zefqmot4364FXy7Yu6K/Ofi2e6Cs8UC0km4CxU0OAXbEJv a1P0064QjS3SE3Zvj4+ya3tbWlbCgOqjAgOB1hAYGFb61P/W+T31pZVdqEnKee8VP/VWUm QTtTXs35A2RScbi3FiFjXVmgYOIl5mwyI7VzC+QfnronWL+WvtplF0z/sggALAWOEO30Ez ZmwYP1kgWtOq/+sVSjlEZOVjih9t+9ecJ0hh6Tsj+ilBNTUp06IsbxVy/INw1OS8CK1UxB 8SXG4w0EiptCTk6MX+2mrNx7OAht4nA+tSbDrQE8yfbZJUuDP6rI6bni0yggSA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655494666; a=rsa-sha256; cv=none; b=I5rFwao0pWhXXdCAXwiy5QrmTy3dt7Y8k1UbP9xtmNmFNiaMfjUuR93SWXHJQ8K9raPADB XwR2SiH4x9vAf3wkEY9sY/8uMWPLh5kAiFbLnBSRSn7yL6KL72pj5X2R7MMn+VxbPOLVGL nyrO8z1buJQ8/7ct4t6+LvexE0DYKpBsp9X6sQ6XmCnctt6qZ5EC5gXRy8AVmYuAy11lOE npscZloyUum8eE2Kiu1CDja0Y3lF7G+N2jAbHyfh/R5t/jNn9vGf7l2w1tp6lw3ytwVnzl QbIcQcaM6IGfnQQpkFK/HZEXgZRkhC2FxUXyXuVAM8wS0JqnS+yj3LYYEYa+sQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=0ea12e483d96a6ea4ed6f65167da612b45098ed4 commit 0ea12e483d96a6ea4ed6f65167da612b45098ed4 Author: Dmitry Chagin AuthorDate: 2021-07-29 09:54:16 +0000 Commit: Dmitry Chagin CommitDate: 2022-06-17 19:33:23 +0000 linux(4): Move len variable initialization to the appropriate place. MFC after: 2 weeks (cherry picked from commit 49a5c0409bf15fc00bbe363fe7090d7b7c601985) --- sys/compat/linux/linux_futex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c index ec65db3f8bd3..353b76afe8cc 100644 --- a/sys/compat/linux/linux_futex.c +++ b/sys/compat/linux/linux_futex.c @@ -893,7 +893,7 @@ linux_get_robust_list(struct thread *td, struct linux_get_robust_list_args *args { struct linux_emuldata *em; struct linux_robust_list_head *head; - l_size_t len = sizeof(struct linux_robust_list_head); + l_size_t len; struct thread *td2; int error; @@ -924,6 +924,7 @@ linux_get_robust_list(struct thread *td, struct linux_get_robust_list_args *args PROC_UNLOCK(td2->td_proc); } + len = sizeof(struct linux_robust_list_head); error = copyout(&len, args->len, sizeof(l_size_t)); if (error != 0) return (EFAULT);