Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1592634rdb; Mon, 8 Jan 2024 04:31:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCAWCNWu0qbF2pPvGyFTqKWAAUFnvFco7o+DBST0sTI6VSfJLe/bNR0IJOgiXLfdh84U5E X-Received: by 2002:a19:4f56:0:b0:50e:2a39:9cfc with SMTP id a22-20020a194f56000000b0050e2a399cfcmr1155883lfk.48.1704717084584; Mon, 08 Jan 2024 04:31:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717084; cv=none; d=google.com; s=arc-20160816; b=RLk2VBnt4Gbp2gvSMwTJ3VGR4PNkhHxLgMuA0z2JO7VBwYEXAbI/UCYuFXsqLKFnIs rjAGghAlspRZqWZFBouS0EKZAgo8+Mc1mNc9qJBWHfOFKMD/IqNlYY0NmYtad5ebLblF KOtFkBR4hBTJlsCX5y4ixpydzWdnLv6E0Jm9MbxuivlUnHV9lEjjv3Wgn0IaaXwJy67h tUFrq4cUWs5UNN0v6ArBtC/QGPiOvWX0c9AKJ2Jv8sBnQQgfW8JMyx4CpNO0vhGXGh9D VvCiw//Lt8/mdluNhHEhqVkeMFXSpHrqP985QVv3Ic8ote0YfWgbvGLBh4tNicum7n5i tSpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=RcCbubbB+f2boNnwyx+Hohq2MY8aRqWj/8oId31mNeU=; fh=lMhbhcf3/FyszXdE6gSjd/Tg1VZzpu3JYU1doIjMSj8=; b=PBbI8PrbCaaos0Tj50VbjcIW/Eunkc/ImyQ/h66ORHhsXymJd9KiSbeh1AlUCRD2uC zsqVAn8sJWIXXT0RwUGJIJC7XHalci+qThCj/qynXAZ0Br7nYtRVMpYijcDwS1mdv59K rNalLxiwca6wZvYRshKt0GT7qxZYO5tjL81A/G8SlVl46/8TlUDCRzQTCGoTwM4si4Ap SXFsrh9RReT+EqSfOfsGAibjTfVV3KLB2CIclAFZVIzRmACaqVxBResZxYIBl4U8u3Za +IQsxpt1AcTmAU4MFkQcYWm9PMf3Hk8l3j+9J48UIrd5AeJwXFkddd+YXXVD6ZwZDC6/ tz9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Db3kakRG; spf=pass (google.com: domain of linux-kernel+bounces-19505-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cf23-20020a170906b2d700b00a234b6bc08csi3027159ejb.262.2024.01.08.04.31.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:31:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19505-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Db3kakRG; spf=pass (google.com: domain of linux-kernel+bounces-19505-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 458A01F2277A for ; Mon, 8 Jan 2024 12:31:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9EB2B43169; Mon, 8 Jan 2024 12:28:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Db3kakRG" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C429144373; Mon, 8 Jan 2024 12:28:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77FD4C433C7; Mon, 8 Jan 2024 12:28:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704716910; bh=0pMd2NkwNypVAaJM69uyrT+5T8QfS6QQ5RO+ZUtRpXU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Db3kakRGAwSdt/FNxpSsXNmSuivh5BEfLvgZGP5d2puphSjMxbxep1aVv1bI8VfJ+ NP8jT80GvL5Q3+tCuRgWXzbd/b+IwLh3QHovRYSNDUH2Mt1sETL/PsfINLFOvSVNFy LWdUYqv6sOhbZ/GBX/CQjvXMNahAgDiHhGpjolGg82FVW5dMtunojXBtkpG+Wkqf9e 2jrW4FZgbn4wP6dBsGQS4MIzRt76Hl72wNo819xd1hU77fkP+EpEGqVwaP198WIWu/ 2szOxDeMcdWHpGd7vH3+28zdd0oh1HZMQCigCiGzZGkFNlb2A/XwebOYoTRULr/VZ8 RSkcdcbxEYXlA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Sarannya S , Simon Horman , "David S . Miller" , Sasha Levin , edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 6.1 3/5] net: qrtr: ns: Return 0 if server port is not present Date: Mon, 8 Jan 2024 07:28:14 -0500 Message-ID: <20240108122823.2090312-3-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240108122823.2090312-1-sashal@kernel.org> References: <20240108122823.2090312-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.71 Content-Transfer-Encoding: 8bit From: Sarannya S [ Upstream commit 9bf2e9165f90dc9f416af53c902be7e33930f728 ] When a 'DEL_CLIENT' message is received from the remote, the corresponding server port gets deleted. A DEL_SERVER message is then announced for this server. As part of handling the subsequent DEL_SERVER message, the name- server attempts to delete the server port which results in a '-ENOENT' error. The return value from server_del() is then propagated back to qrtr_ns_worker, causing excessive error prints. To address this, return 0 from control_cmd_del_server() without checking the return value of server_del(), since the above scenario is not an error case and hence server_del() doesn't have any other error return value. Signed-off-by: Sarannya Sasikumar Reviewed-by: Simon Horman Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/qrtr/ns.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/qrtr/ns.c b/net/qrtr/ns.c index 3e40a1ba48f79..4a13b9f7abb44 100644 --- a/net/qrtr/ns.c +++ b/net/qrtr/ns.c @@ -569,7 +569,9 @@ static int ctrl_cmd_del_server(struct sockaddr_qrtr *from, if (!node) return -ENOENT; - return server_del(node, port, true); + server_del(node, port, true); + + return 0; } static int ctrl_cmd_new_lookup(struct sockaddr_qrtr *from, -- 2.43.0