From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shannon Nelson Subject: Re: [Intel-wired-lan] [iwl next-queue PATCH 02/10] macvlan: Rename fwd_priv to accel_priv and add accessor function Date: Wed, 4 Apr 2018 09:53:21 -0700 Message-ID: <7b6a4392-ed51-4324-9b2e-fa483f769882@oracle.com> References: <20180403211519.7880.70243.stgit@ahduyck-green-test.jf.intel.com> <20180403211603.7880.2593.stgit@ahduyck-green-test.jf.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: Alexander Duyck , intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com Return-path: Received: from aserp2130.oracle.com ([141.146.126.79]:50924 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752482AbeDDQxe (ORCPT ); Wed, 4 Apr 2018 12:53:34 -0400 In-Reply-To: <20180403211603.7880.2593.stgit@ahduyck-green-test.jf.intel.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 4/3/2018 2:16 PM, Alexander Duyck wrote: [...] > > +static inline void *macvlan_accel_priv(struct net_device *dev) > +{ > + struct macvlan_dev *macvlan = netdev_priv(dev); > + > + return macvlan->accel_priv; Perhaps a check for (macvlan == NULL) before using it? sln > +} > #endif /* _LINUX_IF_MACVLAN_H */ > > _______________________________________________ > Intel-wired-lan mailing list > Intel-wired-lan@osuosl.org > https://lists.osuosl.org/mailman/listinfo/intel-wired-lan >