Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1746761ybv; Fri, 21 Feb 2020 02:49:02 -0800 (PST) X-Google-Smtp-Source: APXvYqwDyUyhSFkGFqe+/zi2BCY0Rp+dG7pV+rxX55IiPV+p03ZXskL/E9W4YQsIj9vowy5AvDfg X-Received: by 2002:a9d:6c58:: with SMTP id g24mr29073787otq.229.1582282142465; Fri, 21 Feb 2020 02:49:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582282142; cv=none; d=google.com; s=arc-20160816; b=pSrff0Hnya1rAUCmtPsfzt1JF0FbaU57uBkVAcqjOb/praYzJ3filF9GWCkQeUGwGK mdG4yvpN6UnVov2yzLo5Uk/WknhG0J2CuYTrrotBW9db9Ume1UMksvhiygtTFHRQUNeN 2qCTOIxFBkFV+ojZY37u/4l08Rm6YhJ0Z2q06KokwZ2XPaiKITwrL6v9lTsjJ5eBMFH6 kquNnGaOSMT3mgL6+Em3dUZ4xeNAy/FLE0IFaMA6AGZHqQzMEWpguULbcf5+k6yJhwwJ fE3dsAWE7q9C11ySWWn5LiYQTL8hqo2yA4xmBP1s/TcXklJFgmjLnMtP25JyOVf55AnS fxWQ== 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:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=D8D8p2+biOtJc/YHupPZKhc8o4Z2rp+4Qz69KFk87HM=; b=Q8OAiLU58MEmtcza4Je8EIhRP8rE8JZJC62H6eiodIrSxemfyFhB+5bR3a8OGFP3N4 kcPHJcKqEGKdplA49Kf+S6Ux5fLEtDce1UOV2ugSVSQREbeRjLQA9pcdZEUx4m+I7yhm DW/5T/gE+xw4OVbZ2T2J2JRCGSCR4ZfN5rjTIHII5PASQ/fzlmoY/nzjuhqPDdVi6rNd ACnUcxrEZqMgR3R90cTe6PGZJaMJF5YjkYmNXYT7kkWVnm/UdQkJ+CLAT8zzjGXNkZ2W awgSzTBhPHhbEmS9USgfY/tSCyg512dS8SEJ3FI+8Kf75E6/PnWAsNNmh4SZar/WllR8 AmWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HKO28mP6; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4si1230660otp.186.2020.02.21.02.48.38; Fri, 21 Feb 2020 02:49:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=@redhat.com header.s=mimecast20190719 header.b=HKO28mP6; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728392AbgBUKr5 (ORCPT + 99 others); Fri, 21 Feb 2020 05:47:57 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:32046 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727145AbgBUKr4 (ORCPT ); Fri, 21 Feb 2020 05:47:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582282075; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=D8D8p2+biOtJc/YHupPZKhc8o4Z2rp+4Qz69KFk87HM=; b=HKO28mP6kdVuSrE+ZT3lClSpX9wunU4BF3I44u42R+fqmfADz1HuBKGmP1YoxPxfGuW0Ng O9uH9WCFaKdMnFT4xaTgRpiml8jvmyDz0D/2mzpbz53Yk9z6QCqakbhHNgyZBB6oVavlCP P92MICZNVJvAkHJNa6MdjgnXTZpbPno= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-466-E2zsJrViPl2uOL3YE5j_dg-1; Fri, 21 Feb 2020 05:47:54 -0500 X-MC-Unique: E2zsJrViPl2uOL3YE5j_dg-1 Received: by mail-lf1-f70.google.com with SMTP id i24so510740lfj.17 for ; Fri, 21 Feb 2020 02:47:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=D8D8p2+biOtJc/YHupPZKhc8o4Z2rp+4Qz69KFk87HM=; b=RkNlvS0HsvuG4d+wwJtv5CGuA+CVdR89L5l8qOXTtAGfxD/QevUXHuOPKXQuaKprDQ UaaAMjyQ/h7IjFsB8BigzRRd0TesJc3quzC96wIbw1D0jbDAlu3yDwnl5iOaEKqiMImV 6psK/brCckLog7+HlPDAb+/KZFVi3NLTt38P9fwSiEefZdRqH1I3Y6l+fNx5X/YC40VA 9J2QsolY2WHUZr7affbbjhhVbwflmO1qo1lCTYGq5Bnj9OzMYxwIX2AxcJuqGr1QStYR nMuX+fJyBxhM6SYTm5qWBPdS0yJm/sx038ZeoO02c0DaY08tsY48biuVgYKyFGc5x1ud TM8A== X-Gm-Message-State: APjAAAVclbvEOu5lnb/46/6lFMljeeY639CtvxAYHwFkZoG9wBaOduPH JVYPm2LvUc/WZXJNemCpCibCZGEOH3Ye0HP/16e/L1unDQp6E4m4lnYDssdyvHL8x9hn760YZpD F2ZeKKT3RyZT1ZS8gV6I9I90AZ/Q= X-Received: by 2002:a19:22ce:: with SMTP id i197mr1260431lfi.119.1582282072538; Fri, 21 Feb 2020 02:47:52 -0800 (PST) X-Received: by 2002:a19:22ce:: with SMTP id i197mr1260418lfi.119.1582282072266; Fri, 21 Feb 2020 02:47:52 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id 11sm1401313lju.103.2020.02.21.02.47.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2020 02:47:51 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id D2309180365; Fri, 21 Feb 2020 11:47:49 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Johannes Berg , linux-wireless@vger.kernel.org Cc: Johannes Berg Subject: Re: [PATCH] mac80211: check vif pointer before airtime calculation In-Reply-To: <20200221104544.dddb7a3568fd.I0ede2733a3c76e95daeab07538449ea847e7b78d@changeid> References: <20200221104544.dddb7a3568fd.I0ede2733a3c76e95daeab07538449ea847e7b78d@changeid> X-Clacks-Overhead: GNU Terry Pratchett Date: Fri, 21 Feb 2020 11:47:49 +0100 Message-ID: <878skwush6.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Johannes Berg writes: > From: Johannes Berg > > In case of monitor mode injection, vif may be NULL, don't crash > on that in ieee80211_calc_expected_tx_airtime(). > > Signed-off-by: Johannes Berg Acked-by: Toke H=C3=B8iland-J=C3=B8rgensen