Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3793377img; Mon, 25 Mar 2019 18:39:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfhLQC8ycUfYlxAtnBaM0a3TlUbmlA7dSsy/uVTTLjdv7IbJfj0dzM9gxnUgJI5jq6bw4v X-Received: by 2002:a17:902:a5c3:: with SMTP id t3mr28715763plq.293.1553564353654; Mon, 25 Mar 2019 18:39:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553564353; cv=none; d=google.com; s=arc-20160816; b=Uj39AbzyPhgery3Vc1v7szgc2ISHl+vUB6QG8AxkXhxi3fgHHYHOQ8iiPeD4GUv2o5 +YeYAWU3Kz0nF2mTmfJeUij7maM756bvWedLRpka6f39narYtzLesSOhCMYpZhh415FU 3sKBKfOVjQUq9iLAj3k5wUEjFyW8L7SrDKkCBzYfbnU6nYqDlloZkbJyM4fFWgFbwL0E hqJI9Kk+XEiqbG4PsdR80BWJ6jXMiMsmSgzGreQDUEvIgR6kPCwsMTuCMuQ84yalvpF9 8yQtuaXLJeekQCY7vBpGCnW8C4Tw2hcOyNtNdRYUQxBIVa6ztQByq2lbYjpdLSOkNqhB sb2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gSRhquRXoHtjHoPkSnZIp4jdFhHuWfCHDPLnoGdzEvU=; b=YqCts1Q1H3GJjCBOzUKIUO87BQ1y5qS4aNA6kZEzLOCYkFv5EzxOotozBnsDuoUPRX vtaiMP0oILVjwFTbBN99XrarrDwaxS74OmU5bTiI40Jzw8sBPiSx2pzCzrB6GRSJ/c8E 24tVWHLRUQLjPkUgcwcNO+HtgfkIe70oBRNMK/jFeixuOAV/Dq6nn7ZPShh+QthNFL6U iZHGhxz7ro4k9Em66x0cSQKJU71+Gubjo+0zihUANw6ft4aWwAVrQIF6EiFf8+1vMhcV A5HtOxmRRwUhbUEshvOElrdDV/g8uLzTjbI0WEP5JsjmUYvlWlKK14vDsVbTO1kxS8nR 5XMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VVn6dhgN; 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 d2si15668536pls.325.2019.03.25.18.38.58; Mon, 25 Mar 2019 18:39:13 -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; dkim=pass header.i=@kernel.org header.s=default header.b=VVn6dhgN; 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 S1730747AbfCZBgu (ORCPT + 99 others); Mon, 25 Mar 2019 21:36:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:38726 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727412AbfCZBgu (ORCPT ); Mon, 25 Mar 2019 21:36:50 -0400 Received: from localhost (li1825-44.members.linode.com [172.104.248.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9ED6A2075D; Tue, 26 Mar 2019 01:36:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553564209; bh=G7TroPGUBZ4lxnxjfl7vSKgrP6/IbBc13sFf2iEQ0Q0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VVn6dhgNXtGtrbudSyU8NcFw4e1wUcozMEOxPZmd5uSWSw6mnNw16UCjXSpnpNCuI QJs5hk1iQ9I3zjGDOTDQhyTv2uTCgssdwPI/jagekijBW+VRO07VevrTSCd66Yz7wZ 2g3YC8zk3llE8/t/bQoIQzQ0l803ZUkpNroKwehY= Date: Tue, 26 Mar 2019 10:36:42 +0900 From: Greg Kroah-Hartman To: Arnd Bergmann Cc: stable@vger.kernel.org, Alan Stern , Suwan Kim , "Gustavo A. R. Silva" , Andrey Konovalov , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [BACKPORT 4.4.y 25/25] USB: core: only clean up what we allocated Message-ID: <20190326013642.GE21198@kroah.com> References: <20190322154425.3852517-1-arnd@arndb.de> <20190322154425.3852517-26-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190322154425.3852517-26-arnd@arndb.de> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 22, 2019 at 04:44:16PM +0100, Arnd Bergmann wrote: > From: Andrey Konovalov > > When cleaning up the configurations, make sure we only free the number > of configurations and interfaces that we could have allocated. > > Reported-by: Andrey Konovalov > Cc: stable > Signed-off-by: Greg Kroah-Hartman > (cherry picked from commit 32fd87b3bbf5f7a045546401dfe2894dbbf4d8c3) > Signed-off-by: Arnd Bergmann > --- > drivers/usb/core/config.c | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) Also added to 4.14.y and 4.9.y