Message ID | 20200122092810.521430774@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=TRKd=3L=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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,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 0A037C33CAF for <stable@archiver.kernel.org>; Wed, 22 Jan 2020 09:51:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C719C2467B for <stable@archiver.kernel.org>; Wed, 22 Jan 2020 09:51:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579686670; bh=MRAv4DjXurDeigszhhQyqJaSn3RD9dJlhVII68vR4vE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=CL2OVYuw90K3A31zTiR8vGtj7fONOaMDrdO/tITffQFfQBXFb1meLqBDh/2LL3dMj 5fmlPCq1UeYVk3BpHwUWfTj2HfVckhP/33G9wZkhsPn3+Sh7XM2Exw+tTA691/Jhki N94pi2uhSSyMEwK2VTE0w1wBJuS4jLPnxw5ihA0g= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729184AbgAVJvC (ORCPT <rfc822;stable@archiver.kernel.org>); Wed, 22 Jan 2020 04:51:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:53660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732568AbgAVJha (ORCPT <rfc822;stable@vger.kernel.org>); Wed, 22 Jan 2020 04:37:30 -0500 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 EF5F92467E; Wed, 22 Jan 2020 09:37:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579685850; bh=MRAv4DjXurDeigszhhQyqJaSn3RD9dJlhVII68vR4vE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fLPmnUyWj7o9Z98HLXfpsdtgKPZ2ufi7LY366c3SZg3tRhnOuiFp9LauoG/aw/reZ m9EUS8NNQX7ickDkHcSn7p6HoTia/9TYIQUcX+Bc2LVAQDOesIK2TGPvepucrHwKx2 zzJk07PXjffoDiZPLVVlaDr70e2sLOCwenvxYQU0= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, syzbot+e8a797964a4180eb57d5@syzkaller.appspotmail.com, syzbot+34b582cf32c1db008f8e@syzkaller.appspotmail.com, Johannes Berg <johannes.berg@intel.com> Subject: [PATCH 4.9 89/97] cfg80211: check for set_wiphy_params Date: Wed, 22 Jan 2020 10:29:33 +0100 Message-Id: <20200122092810.521430774@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092755.678349497@linuxfoundation.org> References: <20200122092755.678349497@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
|
--- a/net/wireless/rdev-ops.h +++ b/net/wireless/rdev-ops.h @@ -525,6 +525,10 @@ static inline int rdev_set_wiphy_params(struct cfg80211_registered_device *rdev, u32 changed) { int ret; + + if (!rdev->ops->set_wiphy_params) + return -EOPNOTSUPP; + trace_rdev_set_wiphy_params(&rdev->wiphy, changed); ret = rdev->ops->set_wiphy_params(&rdev->wiphy, changed); trace_rdev_return_int(&rdev->wiphy, ret);