Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2800261ybt; Mon, 22 Jun 2020 07:22:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBBo3Qu0zzVYZPsukTh5n1+1CG+Vvro5/N+cUIXYX6tNJmtDujJMUE+bZdsl6VAs02mLzz X-Received: by 2002:a17:906:5e06:: with SMTP id n6mr15501211eju.504.1592835720718; Mon, 22 Jun 2020 07:22:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592835720; cv=none; d=google.com; s=arc-20160816; b=MMbxF42UhsHfpz+84w+p/o9FAP3ZvaslIFmEjPa08UWoItqlDrmP6/ca+8LKaGCbdA k351PKGl+F+v6czCc457h6L7YPABnAX9rhLFHh0uj7x5wDfHvgcT7ouRl7IChWBn0r0Z 6bDl3eSACgYFFUoM7HO0EZVdlx/9v2B4c6QudiDOPO+BLBsEnMU38MyJvIWl5iLd3Sdo 03BtTTZ3ZboAGFgQfpDdxvzu24T6GlwRx4N4bSfTSdD5hitHm0lVGk1gzTFcQ/ZLE/hw kTjy/TJO6qem2SsJo0Kw+x2Uxi6iVOgXpSUe95BhJEJQQ0Z7aC8zJhRHxgBLmbMWHwv/ VY9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature; bh=oObGm0B9jh/uf5s3EJ3x+nhNB00UTbtnSd4CI5ZXPbM=; b=or+Mt/I6/zr3mhhyiwmRicl/SBNMfn72QdkmzGehBYbPvIvqfLl3e0h0i/N7XNGWqo BkgcMQNvxd/bvSnD98o9zmPcW4dVfocWFkLcISToAERfemoy8c7zRiYDp6HlpGVWymp1 j/i2RYLqsdFRji8UbVLzRuAVFRYn12KLvg9AMdd67ANPmFBdtIQ98AYUOrYfIeo84qd2 K9ZPjsZH0ikFqAowvgL1LwcTHI89C1Rfe3fvo6FEKy0I4ajOpsuk2zhKnNF/FmQeAcuZ eiABGt3Si09nwCyfnj45Cav3UwddyUEgAJILHc/MBpoPY3+01Y4ZA+56w5xmk89om+uj XE5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=gDvg5VTf; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si4728059ejx.378.2020.06.22.07.21.37; Mon, 22 Jun 2020 07:22:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=gDvg5VTf; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729096AbgFVOVO (ORCPT + 99 others); Mon, 22 Jun 2020 10:21:14 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:29426 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728987AbgFVOVN (ORCPT ); Mon, 22 Jun 2020 10:21:13 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592835673; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=oObGm0B9jh/uf5s3EJ3x+nhNB00UTbtnSd4CI5ZXPbM=; b=gDvg5VTfLdPoSZSXkRIx49kkqS/Zi6fEMMJfrD5L/WRue1Wb4ENEibnzuWIAqs+m6bkzdGks pelY3tAp7VvZwmMtarGgAzxhfB15iHp1vlBQxTTAu19BwFOLhTm9tos9KykGeQX00iZl4dPw dmmSmTvkaOvSfAPv8LYgfOrFfxM= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n07.prod.us-west-2.postgun.com with SMTP id 5ef0be506f2ee827dae1ec01 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 22 Jun 2020 14:21:04 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 0652CC433C8; Mon, 22 Jun 2020 14:21:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id E00DBC433C6; Mon, 22 Jun 2020 14:21:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E00DBC433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Lorenzo Bianconi Cc: linux-wireless@vger.kernel.org, nbd@nbd.name, lorenzo.bianconi@redhat.com, sean.wang@mediatek.com Subject: Re: [PATCH v2 wireless-drivers] mt76: mt7663u: fix memory leaks in mt7663u_probe References: Date: Mon, 22 Jun 2020 17:20:58 +0300 In-Reply-To: (Lorenzo Bianconi's message of "Sun, 21 Jun 2020 18:03:38 +0200") Message-ID: <87sgenfagl.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Lorenzo Bianconi writes: > Fix the two following memory leaks in mt7663u_probe: > 1- if device power-own times out, remove ieee80211 hw device. > 2- if mt76u queues allocation fails, remove pending urbs. One logical change per patch, please. If you have to create a list of changes in the commit log that's a good sign that you need to split the patch :) -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches