Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp679469imm; Fri, 1 Jun 2018 07:48:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKZkGAULeGEpaKD2oNgZSXi5oOg2UzDGErOkTSMdiFoJoGTxV9vdssW7DA6CpXNbkhKpMGN X-Received: by 2002:a62:e816:: with SMTP id c22-v6mr7182162pfi.124.1527864511028; Fri, 01 Jun 2018 07:48:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527864510; cv=none; d=google.com; s=arc-20160816; b=EVtGJ51WgHjRniKM32LuJabxprSiD0O7s0JQ2hEUKei+0GljbyeMAGhIcFcdxNoHyQ IIL4o4d+v+13eGi6ceVJIgGjvaVQXhy5njES/rbWQ/6plIp+sNcfoVSUZ/x9Vn9OV/Yz oraiQHEpKQxRR7cwgOiCWtBVReMBzlNchWoe0fUwdLvOSvSt9ARNCYdDa5Kipznjk5ug R8TBmXgnPljQCxVYZW6b4I1JUVoOH5cy2eWtELE59fsoGHckiP8o5HpPZ8HMvRwo+z6q 5lAhltktoSyIyXzMONFvS37cYpIhe2oZFkmVSHmPlhy91OQEMsjQsIUrtPNH7IlvzwtQ feVQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:arc-authentication-results; bh=Mlj108TwbS7OKxO8puxCgTE1ohoZwWI0jmeFo3bOVss=; b=YQ8/lblNQ8pw23TvUQCdzy0+MrV354VuCky8XkaktyueFfqe2RUpaQBLblMCZ1mWEI hGBOm1aHjYWxW1I8H12PO6YfSV51BN7G8vuF1xa4uigL6xragzETDV0qyL3qOIiyZmOr XQI8yGetSxJtVMpNF7qFYZnbSa3cDPvFfFSx9E9MJcJ894BkVOF+hah2LB/B89I3B8oU lFE6yYD9taB64cn5p0k3QKREi057lIOfB0xQBMNlAftw5v0y8r7rJoQVKahYLVr4TtEH wjgNfDgfh8I7AdL2oSdaV8vbqTHpGkTdaKN+9JWBYH8SfI27DK6KGCdMqzjX8qHD8A4R /Pyg== ARC-Authentication-Results: i=1; mx.google.com; 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 e9-v6si31153786pgr.477.2018.06.01.07.48.16; Fri, 01 Jun 2018 07:48:30 -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; 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 S1753056AbeFAOqd (ORCPT + 99 others); Fri, 1 Jun 2018 10:46:33 -0400 Received: from gateway20.websitewelcome.com ([192.185.4.169]:47085 "EHLO gateway20.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753032AbeFAOq3 (ORCPT ); Fri, 1 Jun 2018 10:46:29 -0400 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway20.websitewelcome.com (Postfix) with ESMTP id 572FE400D3D95 for ; Fri, 1 Jun 2018 09:23:00 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id OkxIf7wxoPvAdOkxIfLk3B; Fri, 01 Jun 2018 09:23:00 -0500 X-Authority-Reason: nr=8 Received: from [187.192.46.223] (port=50550 helo=[192.168.1.70]) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1fOkxH-001eBw-Kt; Fri, 01 Jun 2018 09:22:59 -0500 Subject: Re: [PATCH] qtnfmac: fix NULL pointer dereference To: 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> <20180601140848.czb4ws5nixuk4tjb@bars> From: "Gustavo A. R. Silva" Message-ID: <14b57d7b-15cf-dfd8-d64c-2200d435d2f6@embeddedor.com> Date: Fri, 1 Jun 2018 09:22:28 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180601140848.czb4ws5nixuk4tjb@bars> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 187.192.46.223 X-Source-L: No X-Exim-ID: 1fOkxH-001eBw-Kt X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.1.70]) [187.192.46.223]:50550 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 8 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sergey, On 06/01/2018 09:08 AM, Sergey Matyukevich wrote: > 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! > Glad to help. :) > Reviewed-by: Sergey Matyukevich > Thanks -- Gustavo