Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3112015pxm; Mon, 28 Feb 2022 12:15:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrKn9zO26D4ihnEpCDTX6NQAZBZdR9+H37YTc9ONdAZBCmXorPk6IzRXIKP34I5dFUeG0M X-Received: by 2002:a17:902:ce92:b0:150:fbe7:d08b with SMTP id f18-20020a170902ce9200b00150fbe7d08bmr17150781plg.72.1646079328457; Mon, 28 Feb 2022 12:15:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646079328; cv=none; d=google.com; s=arc-20160816; b=s513qtPIhZxjXzKYbrbpYGJQv4qQwiCcrlQscYlIGAfj8FZec/U6BiBqraSs6R/k3E 9AFILzUdbGR5Up0JT7F5ceVfS5TKThbTMd2MVXAd6PsCWy61AHwMuHX0MTsFM6+bP3Ms BNHXs3rWuEE1za5FGEgjK8RcKNowMvbWMt/ukiKGK41WFob6s3RC4jO7a7QA1sfQYpT5 ZUi+8JZIJxFMryheqtYyY9OjOTB353FjH1GfClqIiFi3jvzf4HJkIWqlSdI8V1k73JLt a9GQXPxWHIPq90j4KnDNh6DzQgEjnb1v2t90dtW7Y0sr1N9XyxPpX+JyUV5s8TSRuqMg Vq1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Qc7ixLBxwZtpFZ+yyYivlUMP6Gm9ol1gzBhg+5B8ua4=; b=oOrHDwnNvlKc8rOY57WMyFfyuZpH9cgZO7MCfXKlJEsncCfUyf7cGPzmaHGhP63UhU cKezoDQYvrI5gWKLpTnv8hbF30pG1KM9u4rzqyzB4Up/U5ovhqnd1y12ZyhfyxuSkISa 2KF0NW+hgy7bm/2ytE+0LiLwkIlUnHssNZ2F3N6YUCbLw6tBc1KxTqKNcCIWaaiIlUCV YiTC5U1S3xCueAWY7jUwTzBl4IcB/Fk/56EVIhYZqtkPbFc/PgGjx5OtYpoS5oKSRxUJ tZR8KqUyNMs0NQhIDRc/TxjcTWKjxOzRrjkQsz+uB89NyK45N8OHntP+P16KVRVj3XUZ zmlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ApIu6drf; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id z7-20020a170902ccc700b0014ee47cbfdcsi11069905ple.483.2022.02.28.12.15.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 12:15:28 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ApIu6drf; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 12073170D4A; Mon, 28 Feb 2022 11:37:24 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233336AbiB1ReR (ORCPT + 99 others); Mon, 28 Feb 2022 12:34:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236821AbiB1RcB (ORCPT ); Mon, 28 Feb 2022 12:32:01 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4B6F89336; Mon, 28 Feb 2022 09:29:02 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 552F9B815AE; Mon, 28 Feb 2022 17:29:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC2CEC340E7; Mon, 28 Feb 2022 17:28:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646069340; bh=n1C6owpLgNwjx+El9E0AT/7N/2KvJH9zm209lQ/YAnM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ApIu6drfBs/9tMGkrERZvq7vYNz229p90gPnVE8CRP5/fV3vtiVsuGpNns8rkwZAp 3lcRZ6doWgnHoQmdA0RJX4KEfHc6vbvGWZLkzXxy6VrNA5t6BXSJROl4+xotEcFt6T d8/zj0JWZlJkix+2IIS50XTAn2GdfNOsjNetReHU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jakub Kicinski , Xin Long Subject: [PATCH 4.19 07/34] ping: remove pr_err from ping_lookup Date: Mon, 28 Feb 2022 18:24:13 +0100 Message-Id: <20220228172209.088019410@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220228172207.090703467@linuxfoundation.org> References: <20220228172207.090703467@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xin Long commit cd33bdcbead882c2e58fdb4a54a7bd75b610a452 upstream. As Jakub noticed, prints should be avoided on the datapath. Also, as packets would never come to the else branch in ping_lookup(), remove pr_err() from ping_lookup(). Fixes: 35a79e64de29 ("ping: fix the dif and sdif check in ping_lookup") Reported-by: Jakub Kicinski Signed-off-by: Xin Long Link: https://lore.kernel.org/r/1ef3f2fcd31bd681a193b1fcf235eee1603819bd.1645674068.git.lucien.xin@gmail.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- net/ipv4/ping.c | 1 - 1 file changed, 1 deletion(-) --- a/net/ipv4/ping.c +++ b/net/ipv4/ping.c @@ -192,7 +192,6 @@ static struct sock *ping_lookup(struct n (int)ident, &ipv6_hdr(skb)->daddr, dif); #endif } else { - pr_err("ping: protocol(%x) is not supported\n", ntohs(skb->protocol)); return NULL; }