Received: by 2002:a4a:3008:0:0:0:0:0 with SMTP id q8-v6csp3622862oof; Mon, 10 Sep 2018 18:14:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaIIHN8hGh8ifmv/2hgIo/1y9go+8IqIcni1udphtVbzqujAE2T5HtTRxyKtpnca9LoZFJt X-Received: by 2002:a63:2043:: with SMTP id r3-v6mr25480964pgm.105.1536628456243; Mon, 10 Sep 2018 18:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536628456; cv=none; d=google.com; s=arc-20160816; b=nO4NfLS8NKwaLB5s6EEPF3KYg/Tl9i9CwRS5f+WY835yIjZJsr/fwm9P98Zo4jKHIb dbg9WAMy0B5D3Ys0szUrxqQeejQuq37mXCMwBwrr2usj7DZI5ZDRIf6SAYNAqIghh0Yg DPgzWxgLAn0i/Ema5pZxoK/wNTbdaZ57D0PA9DchRwbMBDA2IVlERJUqnULZLRWzBx0e DaVgTcifHD6S74iVoIOj+EQbD7H7D8Mj4EwozncxPVe21v+Khv7xaIFjHEsj5YvVQ1zs +o/3hEDLIyEQVBIgkXNhKq0yUX5xgokcvRDDSX09c+YWPmNkTUEUoz4JCMvWhymllw0p 7HAQ== 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:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id; bh=qMaIGfhob+mcFUr2295QRiw3xjGc1mLRq5MtGatAFig=; b=qtYIqpam9G1+q9hICmJulXH4Tt9HovoDFkVM7dJkcnsRLZA9ElTXkjabR/UKNQlnnO +XWPMsEAaUlr2EKPNkkiS5n7ppYObA1Qqc64jzpTCekt3qhO11CbdYfp4weqdCiJkiSi X1YbExuJEVbr6rQFmwNesVM3xcoI0QAitF+HPKgXMUdfF+kDYLftDQnruB+xcThiJbuz HQfphg4hfQ/q9UOEkfWtbir2e7AcOBNZ8r2tQ4EtftmAQZNPPYN1yeNTg1Yxd6C4jBlr ataSYi17dEE4Mf8D+/QjkmzdHO7C4GIMdecPA0scVaorNipfxeJl1gwTP2WN/P36d/sO Us1A== ARC-Authentication-Results: i=1; mx.google.com; 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 d4-v6si18450150pla.299.2018.09.10.18.14.01; Mon, 10 Sep 2018 18:14:16 -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; 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 S1726720AbeIKGJW (ORCPT + 99 others); Tue, 11 Sep 2018 02:09:22 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:11680 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726198AbeIKGJW (ORCPT ); Tue, 11 Sep 2018 02:09:22 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 224EAE0E1E9ED; Tue, 11 Sep 2018 09:12:36 +0800 (CST) Received: from [127.0.0.1] (10.177.29.68) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.399.0; Tue, 11 Sep 2018 09:12:32 +0800 Message-ID: <5B97167F.6010401@huawei.com> Date: Tue, 11 Sep 2018 09:12:31 +0800 From: zhong jiang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Jiri Benc CC: , , , , , Subject: Re: [PATCH] net: ipv4: Use BUG_ON directly instead of a if condition followed by BUG References: <1536590282-23899-1-git-send-email-zhongjiang@huawei.com> <20180910173957.5f3728e6@redhat.com> In-Reply-To: <20180910173957.5f3728e6@redhat.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.68] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/9/10 23:39, Jiri Benc wrote: > On Mon, 10 Sep 2018 22:38:02 +0800, zhong jiang wrote: >> + BUG(skb_copy_bits(skb, ptr, &tmp, 1)); > I doubt this builds. This is my fault. should Be BUG_ON Thanks, zhong jiang > Jiri > > . >