Message ID | 20200319123926.711932098@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=1QoN=5E=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48E6BC4332D for <stable@archiver.kernel.org>; Thu, 19 Mar 2020 13:29:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2191C207FC for <stable@archiver.kernel.org>; Thu, 19 Mar 2020 13:29:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584624579; bh=iUS63HzURkdNWPqhwTnoxFpkn4beUpwEPN/ZA6lYULI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=GRECdlo5SuURR/4rTKSKUk/jAsh4X0ycfts0BSVTC8a0D55XxAf25sYHNQdY0oWLk 3zY/jluOMgABX3Ix9QZDfaPvx7kSae8DS4GCDneieMoIiti9bjAxt7IZwomQ+V04g+ zFIrFwJrWonxucArqD6tmN1SzerMT3KYKhfjmDAE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729482AbgCSN3e (ORCPT <rfc822;stable@archiver.kernel.org>); Thu, 19 Mar 2020 09:29:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:50002 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730113AbgCSNXt (ORCPT <rfc822;stable@vger.kernel.org>); Thu, 19 Mar 2020 09:23:49 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9414C20724; Thu, 19 Mar 2020 13:23:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584624229; bh=iUS63HzURkdNWPqhwTnoxFpkn4beUpwEPN/ZA6lYULI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f5i9Xb8d4vt2Iq/F4gXZjW2u8hRC6pY8OQBydyUtrHjTDR5kCabJ4E9Mqd7LUMnzo rfeYMFBoGfLIxk7hZeiSF2zaXtdX2TAa8KDFrxGd2MR1zVRmVeWFbMHvonmCkZTjWc yZhhqC5zPbrhBo8aH/AMUUEdjc8t0vBFuW6QTp4o= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Johannes Berg <johannes.berg@intel.com>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 5.4 23/60] cfg80211: check reg_rule for NULL in handle_channel_custom() Date: Thu, 19 Mar 2020 14:04:01 +0100 Message-Id: <20200319123926.711932098@linuxfoundation.org> X-Mailer: git-send-email 2.25.2 In-Reply-To: <20200319123919.441695203@linuxfoundation.org> References: <20200319123919.441695203@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index fff9a74891fc4..1a8218f1bbe07 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -2276,7 +2276,7 @@ static void handle_channel_custom(struct wiphy *wiphy, break; } - if (IS_ERR(reg_rule)) { + if (IS_ERR_OR_NULL(reg_rule)) { pr_debug("Disabling freq %d MHz as custom regd has no rule that fits it\n", chan->center_freq); if (wiphy->regulatory_flags & REGULATORY_WIPHY_SELF_MANAGED) {