Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp638426imm; Fri, 1 Jun 2018 07:09:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL+k4asIw4XoxChMjYmfAv7B5d+02AovkLQbF+QgL954Cq6xHBGmo3413X8gm3V0IW3W9cf X-Received: by 2002:a63:714e:: with SMTP id b14-v6mr8977601pgn.73.1527862195492; Fri, 01 Jun 2018 07:09:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527862195; cv=none; d=google.com; s=arc-20160816; b=M0v4azOLqfQjVUWUpEPDaoR0wrJr0KLEIoOwBAXyea4UnKFe8XrSN1rJmEgMeqVbYl VMZL18HTUsfyKOI6RSU8IaVyc8zMhvXMA/UH+dlaboOCoATLBwe+70l6rKKs/k3SH5j7 xzQg5nQWAvbY0isK4sRoV0OICvTzAmT81DLUWn7NShaPkQjDyz0eAm3txzcd7r8F1q8R ph1WnBgRsMKdk9IS6RvVfkSsYW8ZOrwSz4DobioIBaOeKNLaak1hONfUKnzw3I9Q0sqU CvCTX/V7eUgiAZHa8uSH6jsQwAfdsRwtpqgtvv42mCC3rOI+2M213n60GziZjfwEbZzJ ThJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature:arc-authentication-results; bh=Wtuk3nmqMEk/EmtLpU9Ur3oO5G863ZpvqzsZv4q0THE=; b=cXdEYpCalCHYfNPtiLoptnxG03I4C7JV4Qf3vznG6F8x1jwOgPiRJ5D6XQnTeUkZAp tStRVjwDjwkBFw/FZ2qVxgLQ6j7kIcuLFf7UsBmDqqiNT8MBv3+qNRQl4GkUqLBM/qIo Gii4KVjutb3LCV03IcL2Hkxa3kzKyZIkNwboSqNZBhRnHyRL2uUHwI9ibb4W7Pk0uOLY ucF5gyToUmE4nqbOU8JLXT+xOkSkx5JPlutE/HHFyrOwg4fwuak/8By5nEUCUzUUTj2Z PL90liI7wKxuySnS94mGWU/s3TTw+vGY/T9UhBuQNNUhJjBYY4n7JwD8Gi0nprC0fnGZ UPNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quantenna.com header.s=selector2 header.b=j+k7JqjP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7-v6si3539616pfd.124.2018.06.01.07.09.40; Fri, 01 Jun 2018 07:09:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@quantenna.com header.s=selector2 header.b=j+k7JqjP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751854AbeFAOJL (ORCPT + 99 others); Fri, 1 Jun 2018 10:09:11 -0400 Received: from mail-by2nam03on0073.outbound.protection.outlook.com ([104.47.42.73]:48480 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751465AbeFAOJH (ORCPT ); Fri, 1 Jun 2018 10:09:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quantenna.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wtuk3nmqMEk/EmtLpU9Ur3oO5G863ZpvqzsZv4q0THE=; b=j+k7JqjPlCib97kB/vdMebyEFh7+V8lEs8ACdewC3lhNhueKeHG2p6gWHFU+b4W90jY5O8ZuWhzp9Krg3gkBbbJsbmpvTL69YuDu+my/NUasNBb2uysi1quI9DBkfo7TzGfq8aYVYgvIWsiz0ByGLfG99G8iuuqFtXDit9ca6Pw= Received: from bars (195.182.157.78) by CY1PR05MB1929.namprd05.prod.outlook.com (2a01:111:e400:58d0::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.11; Fri, 1 Jun 2018 14:09:01 +0000 Date: Fri, 1 Jun 2018 17:08:51 +0300 From: Sergey Matyukevich To: "Gustavo A. R. Silva" Cc: Igor Mitsyanko , Avinash Patil , Sergey Matyukevich , Kalle Valo , "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] qtnfmac: fix NULL pointer dereference Message-ID: <20180601140848.czb4ws5nixuk4tjb@bars> Mail-Followup-To: "Gustavo A. R. Silva" , Igor Mitsyanko , Avinash Patil , Sergey Matyukevich , Kalle Valo , "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org References: <20180601132408.GA2572@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180601132408.GA2572@embeddedor.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [195.182.157.78] X-ClientProxiedBy: AM6PR07CA0026.eurprd07.prod.outlook.com (2603:10a6:209:2a::39) To CY1PR05MB1929.namprd05.prod.outlook.com (2a01:111:e400:58d0::11) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:CY1PR05MB1929; X-Microsoft-Exchange-Diagnostics: 1;CY1PR05MB1929;3:GrJytJ133MrF1O4pFWBMJeSR/13f61KGjSoz7qkYcpeGQUp+NHNzz6Hyp76n6Z7OIrEvApGp5nS/Hi0g9VpxLaQFVxtVZF2xJzStXJZ/2rpifbuiQhemLgLszNYI6hD+F9uinYF0juGKa/hkQayzFJIKt9ccSqDImPjH9tGLRawTMT4t7e/xsEnOIsqhVR2MpjuxPflU0OGwmvr2d+z4LRlIXwx9GI3qhHgpITipmyaovEl3glv/6nZusMTao9LG;25:0BY7+1lbx8jflOEIY6ZrI6TR95TXSEbYJpn6ncsfZ6k3j/MjsxiCqylKwXMH6HFlmZeHNJZEZ2dbnhmH09+nq17P421rN2fjUtS1ml8lNIdxqosBIKSXlmbkPlN9oFPOVXuej9o9Dqfv0uxTxerERztikGI9cfanMj7gg9bv8TpbiwKWxTNTPqw7YYlTsJqEL+2FTJZUr4jHvPMzr5ABaafZY5+uosUcwP76FMkxaHt42JQYFqrwcQQT6wdqNev9h6fPV63xni4l7V2kkDZpkN17xinBBRvyJ83Q1PVHuz25HhhfRAt2Z8+UFfAIKjR3JCrCNKZ4dfOM5UH7bfKShw==;31:9DEa7sm3F6OgKKos5SjElmcDT6uoTKwSG9YrdxFTN/8w5RbKmEKZhdAn882qONKd3f6qFe+HBwXQXppEG/PkTQJKfl1PzvtdLbotsXaxCkoGpcMS30NQs8XFIh00e+uWG7BZikguDh5gEe2dBFKEUbMGhYl/v39sRGPtoJz24sLLXnUkQvbmTbjWHjFnVz2PH88AT82HUNpW0lO6v75LDJg2DaLoBL1olUJOq2ICF8A= X-MS-TrafficTypeDiagnostic: CY1PR05MB1929: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=sergey.matyukevich.os@quantenna.com; X-Microsoft-Exchange-Diagnostics: 1;CY1PR05MB1929;20:TmVPBTGfroYbn4RoWqXhNavYuReT/MgqmpkaywaY2zUSB/cmT3yRzQIoS1KGhr9LknlZkBtxYi2QY0qTj28sNcMM2ZwjxRaEnq18L3Q7Ib/mo0fJXPbQOaEgKFYxI+Kra9vFTRLcoci+yMMybF4wwY2FgtafTyseMsmzoEMiyqCFPg4cIWI2r6XHvUgCf/ZKn6vjs0UiobldaVMvcA2RU2wh/tGUvFCS7he+/pM4LZXuUFXe6So4TTWSjNmAnMHlkHRU63YmHYtG07olSC+sTwxBy4i9ZHlUpOFSSWX6KRcs9Swz6B2z3IuQaYK9S1R+Va59L5oDzP46iBAaovLRyUelwfj2Xp2maIVjyyyQ8CbSyW7S5OzM87ze+9bJmZfzYF6NBgHkGvzNxWi2tSMgEJNtmvGDBIWOlPtiF1dDD/ZrYCaNtd2LdO6URRN0Xg/VhN+CLH578hdHzQIqNFVwBwlcMLzdoAnCyPeO1GLGSewRjSku8zoFe2luPJ72aQ+3;4:85PhoOKuwQmTKFMffFIKwN7LP8NaDOft7Ell3DH3OtgyI4kiYXHeXZvPsbK5RpQgi0N2IPmQ5N89USQPZWoHjcx8+A4IcVMY8be6kdKt38vA8agtQzoMWTQ6MHV+5zB/jMwUsjcmhcJUkrs1RkNcg6bV6sW2GAmoaQS7DvkpIMFftLadnR/dgOAbB4hxoIIhKhJ9VjO5SJr052aPGuGjaKkDCvr8ng8xBFKTs+KNmZswuEPEyI5UViRimG2dR6P9zxwjZ9lEhhM2kAE8P56xeg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(6072148)(201708071742011)(7699016);SRVR:CY1PR05MB1929;BCL:0;PCL:0;RULEID:;SRVR:CY1PR05MB1929; X-Forefront-PRVS: 0690E5FF22 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(39380400002)(39850400004)(396003)(366004)(376002)(346002)(199004)(51914003)(189003)(6116002)(23726003)(3846002)(33716001)(7736002)(9686003)(68736007)(11346002)(956004)(478600001)(33896004)(446003)(486006)(58126008)(16586007)(316002)(476003)(386003)(50466002)(52116002)(76176011)(25786009)(86362001)(53936002)(54906003)(1076002)(4326008)(26005)(16526019)(575784001)(8936002)(97736004)(81166006)(229853002)(186003)(6496006)(66066001)(6666003)(81156014)(2906002)(6916009)(47776003)(305945005)(8676002)(6246003)(106356001)(105586002)(5660300001)(55016002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR05MB1929;H:bars;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: quantenna.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR05MB1929;23:n0jYA/O0a+itSJ96PV5BDjYmZk+rhXGT3gkey9S8X?= =?us-ascii?Q?u/zkeNzw6OqPpVAOIWNQ9YN4PEUavjnwuxhf/Dpa9DI3TAUc55fO2eNJzMmv?= =?us-ascii?Q?FETvF2I9J6Ukzzavrp/gwsl9tze56gZJzGK0O5KED7Nk7pAySZxt4Xss7A6j?= =?us-ascii?Q?d55IuvQ6nfILQ4pR9XsUB0Ad840KIrSTgE3n8210rvJUbf1ZrLAh59kB9AAf?= =?us-ascii?Q?2HSMvL8TOTVPocOMbMVnIwwINQUt7YcOvxGTjziuyzRzmw0ylOFzkavw4e5Z?= =?us-ascii?Q?vUpzYM241NNcnUzJwPiP3g/NMYO82tX+1FxWwaknSIVMB0KWi0y3djYPcucF?= =?us-ascii?Q?FKTmAZk9BgMsNgESKu6QseJiUArmymy8r7gA8aLCuLZAuFrxHwzK7udSJXn4?= =?us-ascii?Q?dPxns+0JnglPUG45NE3NTFQ6r5O689DdwvoIwkGEj+CkjndrYZK1BRn29ZXk?= =?us-ascii?Q?YXO3bkb6syP0so+d2XYIONLR70wlCdwY6//MFoMKW/F4IcTYkJ5cjRbP34nE?= =?us-ascii?Q?QQrAkYtmo573QrntoSxRLaqOoau1GvSUDoz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mOb8qKMJhRE4pdCjMrSj2mIqReFyeOESMSBAMVtQgV28jZmdd/KO5hCgGiUW6cnxF7CAByZXnfgFeTZX6TeCCioj4Ij/VBbF6mXkGx9b1fApGRI4bprp5RJbi7 X-MS-Office365-Filtering-Correlation-Id: 74ceb1b7-e045-4e06-63f2-08d5c7c93c45 X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2018 14:09:01.3822 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 74ceb1b7-e045-4e06-63f2-08d5c7c93c45 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a355dbce-62b4-4789-9446-c1d5582180ff X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR05MB1929 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Gustavo, > diff --git a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c > index 220e2b7..ae0ca80 100644 > --- a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c > +++ b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c > @@ -654,8 +654,7 @@ qtnf_disconnect(struct wiphy *wiphy, struct net_device *dev, > vif = qtnf_mac_get_base_vif(mac); > if (!vif) { > pr_err("MAC%u: primary VIF is not configured\n", mac->macid); > - ret = -EFAULT; > - goto out; > + return -EFAULT; > } > > if (vif->wdev.iftype != NL80211_IFTYPE_STATION) { That was my fault. Thanks for the fix! Reviewed-by: Sergey Matyukevich Regards, Sergey