Return-path: Received: from mail-da0-f43.google.com ([209.85.210.43]:58824 "EHLO mail-da0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755213Ab3AHQJ3 (ORCPT ); Tue, 8 Jan 2013 11:09:29 -0500 Message-ID: <50EC44B5.6020605@lwfinger.net> (sfid-20130108_170951_022075_5AC37106) Date: Tue, 08 Jan 2013 10:09:25 -0600 From: Larry Finger MIME-Version: 1.0 To: Sujith Manoharan CC: linville@tuxdriver.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Stable , "Luis R. Rodriguez" , Vasanthakumar Thiagarajan , Senthil Balasubramanian , ath9k-devel@lists.ath9k.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ath9k_htc: Fix skb leaks References: <1357098567-8558-1-git-send-email-Larry.Finger@lwfinger.net> <20707.47067.474241.813195@gargle.gargle.HOWL> <50E3BE23.3010102@lwfinger.net> <20707.50445.510814.481023@gargle.gargle.HOWL> In-Reply-To: <20707.50445.510814.481023@gargle.gargle.HOWL> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: On 01/01/2013 11:26 PM, Sujith Manoharan wrote: > Larry Finger wrote: >> My only counter argument is that none of the other paths that get to >> ath9k_htc_txcompletion_cb() leak the skb. It only happens for the path that goes >> through htc_connect_service(). > > Sure, but the TX completion handler would be invoked for every skb that is passed > to the USB layer, including the ones that are allocated in htc_hst.c. When this > skb goes down to hif_usb.c, a URB is allocated and I am not sure how freeing > the skb before the USB layer invokes the completion handler for the URB is correct. > > I'll come up with a patch and see if kmemleak still complains. Did I miss your posting on this issue? Larry