Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752653AbdGMQTm (ORCPT ); Thu, 13 Jul 2017 12:19:42 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:47072 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751337AbdGMQTl (ORCPT ); Thu, 13 Jul 2017 12:19:41 -0400 Date: Thu, 13 Jul 2017 09:19:37 -0700 (PDT) Message-Id: <20170713.091937.315484447447541551.davem@davemloft.net> To: wangkefeng.wang@huawei.com Cc: ast@kernel.org, daniel@iogearbox.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] bpf: fix return in bpf_skb_adjust_net From: David Miller In-Reply-To: <1499927278-175876-1-git-send-email-wangkefeng.wang@huawei.com> References: <1499927278-175876-1-git-send-email-wangkefeng.wang@huawei.com> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 13 Jul 2017 09:19:40 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 292 Lines: 9 From: Kefeng Wang Date: Thu, 13 Jul 2017 14:27:58 +0800 > The bpf_skb_adjust_net() ignores the return value of bpf_skb_net_shrink/grow, > and always return 0, fix it by return 'ret'. > > Signed-off-by: Kefeng Wang Applied, thanks.