Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7497161ybl; Tue, 24 Dec 2019 03:43:43 -0800 (PST) X-Google-Smtp-Source: APXvYqwzirhI4aLxbMEQMfYlHzW3NFj8wXd4pQ/poSHBrk2R8CKU7oiapsEQThwbEiCQ+pGzB2xX X-Received: by 2002:a9d:6f85:: with SMTP id h5mr38406734otq.19.1577187823427; Tue, 24 Dec 2019 03:43:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577187823; cv=none; d=google.com; s=arc-20160816; b=Kk3IsZEAj45VtnoIfvdSeN+7Dqe7wRJXbLuuSZxMHwGmwPapxL3BbP4GkL6nT/OghV IAx1kgiTPi1KZ6xUN2JqK7dM0wlYirCNkitmH+/l8AOabtNekwBXQiAv3/1z8UC8in73 Di9IZ8uTLBPCQaT+7a30tgT5kcse0Exbxp9ILUuGzrJJwagO89Ha6hZkVVI43bxA3kvB agkkr6Oc1PpKmgEAGPQ504nMdVxeBReCKqCY0ZlFVeltVv/gY7bLaTflKFbiEEp9fCf5 KLYT9S5CktN1PHvy5QUB2MDCTz0F4GZZRkPjkE5nf17FwKBPj1eXAhN/pYBe+ivHAHth tMYg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=A9+/jlzxejOXGqGuMphO+K4YrVBFVrGdSz2snKyj29o=; b=EqGhUAlaMDCvARFmEYuBM5XuanCmBRYziP2OBGkyaJVQxrLPZ5CI95vjMtLlbPNLZg CSIP1Hfrn1HAuuzbxhxsEmR6qXkLFR4Uit4HJucgV7EP2boBx2NDC3ZiHKVuQ+oEd9se yF9ob6P3M4MsfvTDMctA7F3kD+2+UsQXfnfd2DJ56h429acof0I1z7OVTpnWb1OG6UVF 68lRPnZb9AEQYcMSWy7o21yY/zxYTvq587dV0WZzr4GoCbE/tPTznESE7Ijo6LDiUi8O QtgBgOCZ+vkuaAv2eW5fku41azrZYO3CHpDn9MyICe/deacZnBLcDdh/k1ex1UtQGm3x IrkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=Rw70dVZw; 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 e20si462939oti.219.2019.12.24.03.43.32; Tue, 24 Dec 2019 03:43:43 -0800 (PST) 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=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=Rw70dVZw; 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 S1726559AbfLXLmY (ORCPT + 99 others); Tue, 24 Dec 2019 06:42:24 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:35446 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726222AbfLXLmV (ORCPT ); Tue, 24 Dec 2019 06:42:21 -0500 Received: by mail-lj1-f193.google.com with SMTP id j1so13220448lja.2 for ; Tue, 24 Dec 2019 03:42:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=A9+/jlzxejOXGqGuMphO+K4YrVBFVrGdSz2snKyj29o=; b=Rw70dVZwXrsRRVRfmfqeZsX4G9Fe2idWs1COznV7TftE3Sdg2noDkvaR6TNS4tp2Py oF2SFqrXaXhzpukBAhGPD50KAYYuds2zmrISXOsJasPJrVe3gPW7MAQR4Wx7UQuabpBK BRvoY5XLKvxNR6y5KGgjH7p2zYP7likMnikIKNzniGQ84wYy3oRsjZpNqUzvam6Q626m U/q4E9UYL4uR+UjIozFFKQmEz46638H+GE/Ar7KCWlqfciRYciRakNciti21cgjJS7vx 9m9jZz7VOA4Vix89Y0wLo39cLE9rSTyy3qyeG1Iku4GtH3CgTM7giADWRr5uNr5SeU0r CamA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=A9+/jlzxejOXGqGuMphO+K4YrVBFVrGdSz2snKyj29o=; b=un+oZMu+lTA121pl9EcxmbFkPgFkfh0w1MuEcBXcfrgmU5pwDuFGAkD9FmKkI2DN+l 5cAqxapQaHbRhiPT9qHtg0fnEMUc3xh1Jyzgj+hGxLSOKThn0QYZHPmW40nebhmaQwGY KzvGMN2ml8OLmKEbjtHU3OBVl2zJL+0QqLdCWR2TDyje9CXw4TynI7uDdZGVb20QpGx9 qxOL/G1RzZYgtWEKs/uL4MXBMhNDX1kgZj9seKieii61eRR0ijNzzn/jM2pL65/MWe7f uGjF/EiKu02+dm3GWVeE9w7/3UDtiF4L967epl4mN6xbkbG+bpqQjSvQuZnwihGvHkY3 PWCQ== X-Gm-Message-State: APjAAAUXzy0Jq7ns37C3vOusMyPrth0js6qh+Wbm6LoFOM6WFmgA9DkJ TGXENchWZrvHMKD6JIU92RrHKtrhkKg= X-Received: by 2002:a2e:2d11:: with SMTP id t17mr20102628ljt.177.1577187739239; Tue, 24 Dec 2019 03:42:19 -0800 (PST) Received: from wasted.cogentembedded.com ([2a00:1fa0:441d:5f5:f336:feb9:305c:b1aa]) by smtp.gmail.com with ESMTPSA id r20sm9818028lfi.91.2019.12.24.03.42.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Dec 2019 03:42:18 -0800 (PST) Subject: Re: [PATCH] ppp: Remove redundant BUG_ON() check in ppp_pernet To: Xu Wang , paulus@samba.org Cc: davem@davemloft.net, linux-ppp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <1577180224-16405-1-git-send-email-vulab@iscas.ac.cn> From: Sergei Shtylyov Organization: Cogent Embedded Message-ID: Date: Tue, 24 Dec 2019 14:42:12 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1577180224-16405-1-git-send-email-vulab@iscas.ac.cn> Content-Type: text/plain; charset=utf-8 Content-Language: en-MW Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! On 12/24/2019 12:37 PM, Xu Wang wrote: > Passing NULL to ppp_pernet causes a crash via BUG_ON. > Dereferencing net in net_generici() also has the same effect. s/generici/generic/. :-) > This patch removes the redundant BUG_ON check on the same parameter. > > Signed-off-by: Xu Wang [...] MBR, Sergei