Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp5852893ybn; Sun, 29 Sep 2019 07:06:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyIM8qks6gN5ynDY5mlLbGU/pYs2fJj88ta2LuyBUlkmyBtaZQ5F2hDXANDJsZa+BmFHzh X-Received: by 2002:a50:baab:: with SMTP id x40mr14951206ede.60.1569765981498; Sun, 29 Sep 2019 07:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569765981; cv=none; d=google.com; s=arc-20160816; b=ntzejyZ5Hde/W10SzHdOdOjnw2LPiU2mCPmMBk8HHMHqp8U6Bv55tluH9BiV5d8uPW adjZxTXTkiT0wCHpOOgyg6P5fLWqPSVhBde8GLxJNJoS7mVgB0sKzRysV8xQz/jLO6dH 5mwBkTCmpXXzIiWz3iIbq8biS3doPwhXn3wFK3xgkBPeDpRI4IjP1Z2WECS/D4tv6Y/E JzBpQwEKFFKozfPKJlfY2PSJvzS/rh2IdWsPPP/gB2hTl429+XJi1qh65G8kJhgAeGty NeNozfQF15Uv9Q+Dk7CMrbtjKpML6XTXLdcR64tYVVuwOGQd1fPlZth+myJ+KyjGIsux xF9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dVMotWRin3TDfAk8yWtWuEcJzI8L/pbrz9wJNjDyx6g=; b=nG6Y1dpfBEBn6//APguubh+hH+5OEqEubBJ5Gjfz4SUL+g16yaxBMxs8K9dd+WRimp vYNKtqVUDanfH7b2VzGFeSpHiT5MjBght73QIX+dlZOgUyEhVhG8xqDRNev9WBJded1Z u96VlpNKRwU/D4UBKGFwk3Ky1kvhtsUlG0lhE32dp9dW/8DgMTlIAzKUCVyso4jvOMQR OTB5fnB9oNFQU2E231uDWOtMH8TKhqUxQjYI+8Q00t75OWPXsk8ePjKgYT4ksRvFvzLO k+s/mUpSU7cYcISZuT9do5Lr0mgc95HByWUz4F0yL3URZKZcu8M66Mo2Zw7rfz81AbYx bNjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nsuAVLN4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si5909040ejw.31.2019.09.29.07.05.56; Sun, 29 Sep 2019 07:06:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nsuAVLN4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730202AbfI2OCW (ORCPT + 99 others); Sun, 29 Sep 2019 10:02:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:45000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730194AbfI2OCW (ORCPT ); Sun, 29 Sep 2019 10:02:22 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0A73221835; Sun, 29 Sep 2019 14:02:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569765741; bh=cRcNa+IPSu9O6oUe7TD+cvUBa7ZY+zVpPPKdob/HPKY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nsuAVLN4A6omUDmL93oM5csYoTId3VEr9MY+UGnuY03qWbSgbSXN6EbwemHFG1S1A YWgArlM9WhhN7gsLKE+VGdh56P+K4yLuojq/miOucAFp5Zs8F3ihe0EVxew66pCl16 FQX3yyAqdhZLZag21jUHGkN//umdLRmLm+2MxBmk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stephen Hemminger , "David S. Miller" , Sasha Levin Subject: [PATCH 5.2 36/45] net: dont warn in inet diag when IPV6 is disabled Date: Sun, 29 Sep 2019 15:56:04 +0200 Message-Id: <20190929135032.777210777@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190929135024.387033930@linuxfoundation.org> References: <20190929135024.387033930@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stephen Hemminger [ Upstream commit 1e64d7cbfdce4887008314d5b367209582223f27 ] If IPV6 was disabled, then ss command would cause a kernel warning because the command was attempting to dump IPV6 socket information. The fix is to just remove the warning. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=202249 Fixes: 432490f9d455 ("net: ip, diag -- Add diag interface for raw sockets") Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/ipv4/raw_diag.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/ipv4/raw_diag.c b/net/ipv4/raw_diag.c index 899e34ceb5602..e35736b993003 100644 --- a/net/ipv4/raw_diag.c +++ b/net/ipv4/raw_diag.c @@ -24,9 +24,6 @@ raw_get_hashinfo(const struct inet_diag_req_v2 *r) return &raw_v6_hashinfo; #endif } else { - pr_warn_once("Unexpected inet family %d\n", - r->sdiag_family); - WARN_ON_ONCE(1); return ERR_PTR(-EINVAL); } } -- 2.20.1