From patchwork Mon Sep 11 19:52:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jozsef Kadlecsik X-Patchwork-Id: 812566 X-Patchwork-Delegate: pablo@netfilter.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netfilter-devel-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=blackhole.kfki.hu header.i=@blackhole.kfki.hu header.b="FUVyUAY3"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xrdrL0V8bz9s0Z for ; Tue, 12 Sep 2017 05:52:50 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751628AbdIKTwo (ORCPT ); Mon, 11 Sep 2017 15:52:44 -0400 Received: from smtp-in.kfki.hu ([148.6.0.25]:34436 "EHLO smtp0.kfki.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751618AbdIKTwn (ORCPT ); Mon, 11 Sep 2017 15:52:43 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp0.kfki.hu (Postfix) with ESMTP id 57CAF67400DA; Mon, 11 Sep 2017 21:52:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= blackhole.kfki.hu; h=references:in-reply-to:x-mailer:message-id :date:date:from:from:received:received:received; s=20151130; t= 1505159560; x=1506973961; bh=8tFa6ahjDVQvXIHrBHnVtw7I5CyBMtlcBON qQjwXSs0=; b=FUVyUAY3R2F9yPgR8vH42EOtwg2aNeBEf1JElS+SB5WnfFrc+Ns ZRWfGmwyGNJ5f55KCX75THg2gJkHgIwMz9M84ECwF14/5Gr0RcSVHl2Y/rA5ZgZO YqRgdXCdaGfLro1mu4rccWR+ColWvcJEU6KUx0wMNXWWH2kl9ZZQvmMg= X-Virus-Scanned: Debian amavisd-new at smtp0.kfki.hu Received: from smtp0.kfki.hu ([127.0.0.1]) by localhost (smtp0.kfki.hu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ALKHYG4f7QZA; Mon, 11 Sep 2017 21:52:40 +0200 (CEST) Received: from blackhole.kfki.hu (blackhole.kfki.hu [148.6.240.2]) by smtp0.kfki.hu (Postfix) with ESMTP id B188167400D5; Mon, 11 Sep 2017 21:52:40 +0200 (CEST) Received: by blackhole.kfki.hu (Postfix, from userid 1000) id 971ED20234; Mon, 11 Sep 2017 21:52:40 +0200 (CEST) From: Jozsef Kadlecsik To: netfilter-devel@vger.kernel.org Cc: Pablo Neira Ayuso Subject: [PATCH 2/4] netfilter: ipset: Fix sparse warnings Date: Mon, 11 Sep 2017 21:52:38 +0200 Message-Id: <1505159560-13161-3-git-send-email-kadlec@blackhole.kfki.hu> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1505159560-13161-1-git-send-email-kadlec@blackhole.kfki.hu> References: <1505159560-13161-1-git-send-email-kadlec@blackhole.kfki.hu> Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Signed-off-by: Jozsef Kadlecsik --- net/netfilter/ipset/ip_set_hash_ipportnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/ipset/ip_set_hash_ipportnet.c b/net/netfilter/ipset/ip_set_hash_ipportnet.c index 5ab1b99..24bf558 100644 --- a/net/netfilter/ipset/ip_set_hash_ipportnet.c +++ b/net/netfilter/ipset/ip_set_hash_ipportnet.c @@ -434,7 +434,7 @@ hash_ipportnet6_uadt(struct ip_set *set, struct nlattr *tb[], if (unlikely(tb[IPSET_ATTR_IP_TO])) return -IPSET_ERR_HASH_RANGE_UNSUPPORTED; if (unlikely(tb[IPSET_ATTR_CIDR])) { - u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); + cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); if (cidr != HOST_MASK) return -IPSET_ERR_INVALID_CIDR;