Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp232670pxj; Wed, 9 Jun 2021 22:25:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1H9uR+vrcROupTxe9MwPv5E08p5FNip9xmsEaVebHpoVF6jDdYYvtAlkY1T6FQAskpAnZ X-Received: by 2002:a05:6402:b89:: with SMTP id cf9mr2981414edb.198.1623302729349; Wed, 09 Jun 2021 22:25:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623302729; cv=none; d=google.com; s=arc-20160816; b=ApJ384+5UWEWLwDkAiODFhwwZhIq1xM5kPTOCWAKMHLX3xpCbSXIvbJFJlNmOM5jWz whgRaogZeqMVIbosqcgCk9sE3MG2IXZFCGkFWCrMOoAP1pYYzcP3blZra31DHr4ehjIP Q/ll0QI+uCB4I3hKzk1toaphdk10FwhL1YaTvr4rtcjB3skBslxn+A4Hl3SISYlPefYb 5tOJa98mHSKC0DC4H5fxtQ16fI3a+pemMAIwwAIzORVNpvDXLaPAE6ZVySOw6iOnRD7g gUqaRO+MsyMS7cv7NVYFeAS8L2YW52qbDOuTNhDADCBy3bAPzV9SCkGfYLpSE6MgmE3S xK7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=L5LN+FHK3eKNFuBtdy5JfLLIUQxj/koQwcOp4w1sobg=; b=Gm2DNet0V1ifTWyZcjhwxijtKuW1cOxSf4zI29bGK1zTCU+uKldRkTc9kMI9JesPUi 82AqyDHbqtSGOn3EJknrRsMy/vpud45E8bmz29qOuPu2o2fFEz2K2U+T2osfups2bDxT juTRuAqAmXUQTA7YfJBTWYi3NjOF3AKcmyI/2oAAvIy81NGbuR9tTGvGhGWNRFmNUSFL AGkGAmy+ziL6Au0vmDh5LcxSnOohplco8ytPzdMSOZIiSHl4zBK1RJ6JfKudkv74nz1H KcbLv0AzsauRt24HgDmLJ+Z9JZNYIBUjWl3V0SK9xgWVst3vRgSS9ARSFH3tpOSOOF8o n/3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R6Ye10hh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ec4si1670231ejb.244.2021.06.09.22.25.05; Wed, 09 Jun 2021 22:25:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R6Ye10hh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230162AbhFJFZA (ORCPT + 99 others); Thu, 10 Jun 2021 01:25:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:49828 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230154AbhFJFY5 (ORCPT ); Thu, 10 Jun 2021 01:24:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 72635613E1; Thu, 10 Jun 2021 05:22:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623302566; bh=kKp8oU7QwWVcxL3bQAssMPPgzG6/DfWTtdrYTafZCoc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R6Ye10hhufA/hdgGi3PrCWos3nqsMj0z2K+vp2phrtLj+tKIkHYnbxMRIjBcbcixv L2ZXSltM7yJcJFb8uo4Pf+jk3XqMH3DvP1qzY5W/o5ZXcF650En0iIfHsEslM3O6lQ FWSQycXuLbFhHSEKWkpbSS6I//mdskUeQgBj66PQ= Date: Thu, 10 Jun 2021 07:22:42 +0200 From: Greg KH To: Pascal Giard Cc: Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Daniel Nguyen Subject: Re: [PATCH] HID: sony: fix freeze when inserting ghlive ps3/wii dongles Message-ID: References: <20210604161023.1498582-1-pascal.giard@etsmtl.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 09, 2021 at 08:25:47PM -0400, Pascal Giard wrote: > On Sat, Jun 5, 2021 at 2:44 AM Greg KH wrote: > > > > On Fri, Jun 04, 2021 at 12:10:23PM -0400, Pascal Giard wrote: > > > This commit fixes a freeze on insertion of a Guitar Hero Live PS3/WiiU > > > USB dongle. Indeed, with the current implementation, inserting one of > > > those USB dongles will lead to a hard freeze. I apologize for not > > > catching this earlier, it didn't occur on my old laptop. > > > > > > While the issue was isolated to memory alloc/free, I could not figure > > > out why it causes a freeze. So this patch fixes this issue by > > > simplifying memory allocation and usage. > > > > > > We remind that for the dongle to work properly, a control URB needs to > > > be sent periodically. We used to alloc/free the URB each time this URB > > > needed to be sent. > > > > > > With this patch, the memory for the URB is allocated on the probe, reused > > > for as long as the dongle is plugged in, and freed once the dongle is > > > unplugged. > > > > > > Signed-off-by: Pascal Giard > > > --- > > > drivers/hid/hid-sony.c | 98 +++++++++++++++++++++--------------------- > > > 1 file changed, 49 insertions(+), 49 deletions(-) > > > > > > > > This is not the correct way to submit patches for inclusion in the > > stable kernel tree. Please read: > > https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html > > for how to do this properly. > > > > > > Dear Greg, > > I apologize for failing to follow the procedure. I had already read > these guidelines, and I actually thought I was following Option 1 :-/ Is this commit already in Linus's tree? If so then we just need a git commit id and we can queue it up. > I thought that I had to get my patch merged into next first (patch > against dtor's git) and that by adding stable@ as CC, it would > automatically get considered for inclusion into stable once merged > into Linus' tree. Based on your email, I got that wrong... It will, but you need to add that to the signed-off-by: area, as the document says. thanks, greg k-h