Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1575158rwb; Fri, 18 Nov 2022 22:49:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf4c6o39BsICG+NBNF8UkvmIe8CdgVNBGpF6n07N/t/aulTvY+kDuwQ1r+ODzoaofAGoNk8m X-Received: by 2002:a17:90a:fe85:b0:214:132a:2b90 with SMTP id co5-20020a17090afe8500b00214132a2b90mr17178789pjb.195.1668840563758; Fri, 18 Nov 2022 22:49:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668840563; cv=none; d=google.com; s=arc-20160816; b=UJCb0brsXsqzjr9sF1k2rQMk90FN5eKmDdV6YC3tHE+qT6gX20VTcX5ySWb8gawULN zI/sAUFEGbcLP88Q12N1tp136uQSiA81hhMquWpUg+itjpwbbsSHRWoVfVOdrJIXWdh7 WFGU0PCzWFkLmLFLtGeV1CYttqPezPbQULuWv6b4k3Yiwc67NFPJEn3gRa0tbbELc6QL nBtMG/kEoxSUDz53EYoBvV8Jps92f/nqTkZmsdPUyPCn7E/8k9DoF/yGBK2cKa/5zUSI urr3m5N2vbgCa7C6bCSRwLXF1PCfPgeait+6DN5mCRfQYpPAEMo8T6Yz+rNiOJ3977y6 TDXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=1uFa3MxOEi5yUsLg5cyOgHYfX9JmzXtsld9ruJA162w=; b=Vv1E+fcT3PugPCSKLvDqHcH+Bv1Uqy2CxP/90LQ1kikH3HgFUO3wnmWknZYcGWqElp 92Be0yrg8S+caOhOxooSToZnT5tvTLs28/sHFXKcjEk2Pmpa3qILza0367HHYX+HnKXt Te7PdT2Er5j2BA2ENQzsKx8jpaGdALJgGiz0e/cLv/TaPLfw2oFInbFQ1HUR0lJtVxIF c3K+c7pR02gpuxxO+Ap98gVI5lqYEYt7Nb7i/9WiBebne5omVXwyiPAPfDyuaJLUe8x3 4ghmrRJ54cihgrOKa4c9pqIStZ2VlP3UU4wtLB4V+HBqhbp45Fi0CTJwYShwZLlm+EKg 2dXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Od5Lm8+/"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n15-20020a17090aab8f00b00211f23d6f49si8721553pjq.15.2022.11.18.22.49.11; Fri, 18 Nov 2022 22:49:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Od5Lm8+/"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232246AbiKSGmX (ORCPT + 68 others); Sat, 19 Nov 2022 01:42:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbiKSGmX (ORCPT ); Sat, 19 Nov 2022 01:42:23 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8533EB6B32; Fri, 18 Nov 2022 22:42:22 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0ED9460A70; Sat, 19 Nov 2022 06:42:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0C89C433C1; Sat, 19 Nov 2022 06:42:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668840141; bh=MYzMOrXhZYnAskvSQxTcQL89+bTXl9cw9C7LIKijM/c=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Od5Lm8+/EupnP5GexQQjYDTfSUIKiMA0njT0lBLr/nxN2yCj5sEUSbyA56m5+1UUE CqSN9PyB778jTd8Pq/POM6aor1e+UH5BJM3o70aaE+130v/sT8Fzv1KWcZGzLqwrp5 6aTRPFtRT71VwAseMSj9kUzxqJ+xS9v4lXmlsr8Vhpe6XTI/By/PbQfgkssmUAC+9+ YRFRvYJoP9FGv78viXbPNXOZRao/yPkcl2zihMzt0dbPSXtvVQi/xlKM8PqLVQlD7M 2Iq2yJ2167TAh3zSEWQLOCcgsURPE+7nD6q2XUfjF3YOygu65SOSs6vQNQ6d1vIR5H GFjimYY8vWaJA== From: Kalle Valo To: Ziyang Xuan Cc: , , , , , , , Subject: Re: [PATCH net] wifi: plfxlc: fix potential memory leak in __lf_x_usb_enable_rx() References: <20221119051900.1192401-1-william.xuanziyang@huawei.com> Date: Sat, 19 Nov 2022 08:42:16 +0200 In-Reply-To: <20221119051900.1192401-1-william.xuanziyang@huawei.com> (Ziyang Xuan's message of "Sat, 19 Nov 2022 13:19:00 +0800") Message-ID: <87v8nbphrr.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Ziyang Xuan writes: > urbs does not be freed in exception paths in __lf_x_usb_enable_rx(). > That will trigger memory leak. To fix it, add kfree() for urbs within > "error" label. Compile tested only. > > Fixes: 68d57a07bfe5 ("wireless: add plfxlc driver for pureLiFi X, XL, XC devices") > Signed-off-by: Ziyang Xuan > --- > drivers/net/wireless/purelifi/plfxlc/usb.c | 1 + > 1 file changed, 1 insertion(+) plfxlc patches go to wireless tree, not net. But I think I'll take this to wireless-next actually. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches