lkml.org 
[lkml]   [2019]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [BACKPORT 4.4.y 25/25] USB: core: only clean up what we allocated
On Fri, Mar 22, 2019 at 04:44:16PM +0100, Arnd Bergmann wrote:
> From: Andrey Konovalov <andreyknvl@google.com>
>
> 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 <andreyknvl@google.com>
> Cc: stable <stable@vger.kernel.org>
> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> (cherry picked from commit 32fd87b3bbf5f7a045546401dfe2894dbbf4d8c3)
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> drivers/usb/core/config.c | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)

Also added to 4.14.y and 4.9.y

\
 
 \ /
  Last update: 2019-03-26 02:37    [W:0.188 / U:0.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site