From: David Miller Subject: Re: [patch net] net: sched: fix error path in tcf_proto_create() when modules are not configured Date: Fri, 11 May 2018 16:35:20 -0400 (EDT) Message-ID: <20180511.163520.299986603968780053.davem@davemloft.net> References: <20180511154532.2391-1-jiri@resnulli.us> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, jhs@mojatatu.com, xiyou.wangcong@gmail.com, mlxsw@mellanox.com To: jiri@resnulli.us Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:50590 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750798AbeEKUfW (ORCPT ); Fri, 11 May 2018 16:35:22 -0400 In-Reply-To: <20180511154532.2391-1-jiri@resnulli.us> Sender: netdev-owner@vger.kernel.org List-ID: From: Jiri Pirko Date: Fri, 11 May 2018 17:45:32 +0200 > From: Jiri Pirko > > In case modules are not configured, error out when tp->ops is null > and prevent later null pointer dereference. > > Fixes: 33a48927c193 ("sched: push TC filter protocol creation into a separate function") > Signed-off-by: Jiri Pirko Applied and queued up for -stable.