From owner-svn-src-head@freebsd.org Fri Oct 13 07:51:45 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 28D07E3FE28; Fri, 13 Oct 2017 07:51:45 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D386D7C4FC; Fri, 13 Oct 2017 07:51:44 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id AFBE5260444; Fri, 13 Oct 2017 09:51:42 +0200 (CEST) Subject: Re: svn commit: r324580 - head/sys/net80211 To: Adrian Chadd Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" References: <201710130649.v9D6n7cI036282@repo.freebsd.org> From: Hans Petter Selasky Message-ID: Date: Fri, 13 Oct 2017 09:49:06 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Oct 2017 07:51:45 -0000 On 10/13/17 09:45, Adrian Chadd wrote: > no, it checks it. > > > -a > > > On 13 October 2017 at 00:11, Hans Petter Selasky wrote: >> On 10/13/17 08:49, Adrian Chadd wrote: >>> >>> if (ieee80211_check_rxseq_amsdu_more(rxs)) { >> >> ^^^ does this line also need a NULL check? >> >> >>> ni->ni_rxseqs[tid] = rxseq; >>> - if (ieee80211_check_rxseq_amsdu(rxs)) >>> + if ((rxs != NULL) && ieee80211_check_rxseq_amsdu(rxs)) >>> IEEE80211_NODE_STAT(ni, rx_amsdu_more_end); >> >> >> --HPS > > Then why are you checking that pointer twice? Why not make ieee80211_check_rxseq_amsdu_more() return false, if rxs is NULL? --HPS