From nobody Sat Feb 18 17:55:02 2023 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 4PJxCq57gXz3spf9; Sat, 18 Feb 2023 17:55:03 +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 4PJxCq0ld3z4H54; Sat, 18 Feb 2023 17:55:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676742903; 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=5kMgFAEQ0OzUoaTrktS23j/Rr0Tv/9eCoKWHVRa0gx0=; b=TgihDJT973o6sTPEsA0otnnMqgWsoT1AsNLvkx8nWQ2+0BT5vWEaKREpmPnQkzPfjxBFjZ KCIVt9c5pUAswMihtVIdeaCWS/W0PGV9PwVrf0yiZQpQfqBkSyqMz2MThIE2UIUd/ZiyWr fK2L6RcnQ4ms3sGOz1mYs1GbXh+XDr3gcJapzFXk2wWxa9z+aDRVZp/m+OXhCtO2YwX+tW UcPCyioV6xD+uJq5hqicDFFIWq4VE9EFYrMK79LCT5xhplkmc3va1/CwIe7YJtpTAKgdNZ soxMHKcFQL0fnKP1/xDc6/R3n5lKkFFx1Di1VRHjjJJ9D4wh/vornqTn7WTjQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676742903; 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=5kMgFAEQ0OzUoaTrktS23j/Rr0Tv/9eCoKWHVRa0gx0=; b=mhHsG6gbhdqnfaYDpVn4QrDoN5McDpIP1NgMQxqIe493pg7SpvJ8a0NFCqwBiu0ahxFDhZ ZR7CkuwPRiRN8uycJ15CqOK9OPMG1vXHdtQHE/qOwu7BonYygo2FlJ9jAYYp7Na7h9cFNN CFVacc4aCU2gO93PG+ktVVhbAWlQtLn8Luc5AWxbBfEbBeG+JoCPNae6I+TIEG9Ineuagh RthpBuDYYvd3zFfcDSGVTJ/Ro0fQmoUIplrzYfEcwMlY3xMrExEQC2kEH+ap9aSgtreSUH Pj8bD92mt6+WjaAZrB9nAhtj4pljveTgkF4g6/k9+YPjGvVInW6uRsW+YCqf9A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676742903; a=rsa-sha256; cv=none; b=NShq+Bzcy3dADagcwtFGxBfkBDm7O6xQT3J6sPKIG2fM+s0Ih7Vd4bI4LOyimjP9YYM+au 0LrhO0w4wCpwOM64QyXNfpmsBOoQQkLmklGocctUA6/SEC/1GkdzZk4M/sfRHhb8ZCyDpV FnQmB38g2mZbZ8qAol1oVXnGO6bx9sp583rSGzEG1IuhnSlMJWodrxiIzGQ6sc8YoZNGcz Jw7yHEFWo4nPaNupB99RvfQRGjJG+noQ9DWHXEB9xIMLXnaBKTmwww6dquXZ7GahSYPgoA pmtIMYW6rgEZnjWyi3yovI36K9sg3vTrlalILKQj22tlyfblCE+RAeCel4b3pA== 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 4PJxCp6yhvzWyH; Sat, 18 Feb 2023 17:55:02 +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 31IHt2vJ083464; Sat, 18 Feb 2023 17:55:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31IHt25O083462; Sat, 18 Feb 2023 17:55:02 GMT (envelope-from git) Date: Sat, 18 Feb 2023 17:55:02 GMT Message-Id: <202302181755.31IHt25O083462@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: 4404e840cf3a - main - netlink: initialise error in nl_autobind_port(). 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: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4404e840cf3aa8d06d79dc281fffbb32860ab2af Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=4404e840cf3aa8d06d79dc281fffbb32860ab2af commit 4404e840cf3aa8d06d79dc281fffbb32860ab2af Author: Alexander V. Chernikov AuthorDate: 2023-02-18 17:18:57 +0000 Commit: Alexander V. Chernikov CommitDate: 2023-02-18 17:53:05 +0000 netlink: initialise error in nl_autobind_port(). CID: 1498877 MFC after: 2 weeks --- sys/netlink/netlink_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netlink/netlink_domain.c b/sys/netlink/netlink_domain.c index 630ce47cd228..5f9120f14308 100644 --- a/sys/netlink/netlink_domain.c +++ b/sys/netlink/netlink_domain.c @@ -384,7 +384,7 @@ nl_autobind_port(struct nlpcb *nlp, uint32_t candidate_id) uint32_t port_id = candidate_id; NLCTL_TRACKER; bool exist; - int error; + int error = EADDRINUSE; for (int i = 0; i < 10; i++) { NL_LOG(LOG_DEBUG3, "socket %p, trying to assign port %d", nlp->nl_socket, port_id);